1
1
Fork 0

Add float casting back to dfrn_poll

- Add new line at end of new module files
This commit is contained in:
Hypolite Petovan 2018-01-02 19:37:17 -05:00
parent 9a3e773a9a
commit 0aea615995
3 changed files with 3 additions and 3 deletions

View file

@ -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');

View file

@ -308,4 +308,4 @@ class Login extends BaseModule
return $o;
}
}
}

View file

@ -26,4 +26,4 @@ class Logout extends BaseModule
info(t('Logged out.') . EOL);
goaway(self::getApp()->get_baseurl());
}
}
}