From 0aea6159958ac78a42b82e45f9517cb978637ff7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 2 Jan 2018 19:37:17 -0500 Subject: [PATCH] Add float casting back to dfrn_poll - Add new line at end of new module files --- mod/dfrn_poll.php | 2 +- src/Module/Login.php | 2 +- src/Module/Logout.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 +}