diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index 69e86f1bc..6c494128b 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -23,7 +23,7 @@ function dfrn_poll_init(App $a) $destination_url = defaults($_GET, 'destination_url', ''); $challenge = defaults($_GET, 'challenge' , ''); $sec = defaults($_GET, 'sec' , ''); - $dfrn_version = defaults($_GET, 'dfrn_version' , 2.0); + $dfrn_version = (float) defaults($_GET, 'dfrn_version' , 2.0); $perm = defaults($_GET, 'perm' , 'r'); $quiet = x($_GET, 'quiet'); diff --git a/src/Module/Login.php b/src/Module/Login.php index 518389841..b90ba9d1d 100644 --- a/src/Module/Login.php +++ b/src/Module/Login.php @@ -308,4 +308,4 @@ class Login extends BaseModule return $o; } -} \ No newline at end of file +} diff --git a/src/Module/Logout.php b/src/Module/Logout.php index 5c3035eed..0c8a617b2 100644 --- a/src/Module/Logout.php +++ b/src/Module/Logout.php @@ -26,4 +26,4 @@ class Logout extends BaseModule info(t('Logged out.') . EOL); goaway(self::getApp()->get_baseurl()); } -} \ No newline at end of file +}