From: Hypolite Petovan Date: Wed, 3 Jan 2018 00:37:17 +0000 (-0500) Subject: Add float casting back to dfrn_poll X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0aea6159958ac78a42b82e45f9517cb978637ff7;p=friendica.git Add float casting back to dfrn_poll - Add new line at end of new module files --- diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index 69e86f1bc2..6c494128b1 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 5183898414..b90ba9d1d4 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 5c3035eed9..0c8a617b22 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 +}