Enforce systen.register_policy value type

This commit is contained in:
Hypolite Petovan 2018-07-15 15:04:48 -04:00
commit 67dc08d120
14 changed files with 19 additions and 19 deletions

View file

@ -99,7 +99,7 @@ function regmod_content(App $a)
{
if (!local_user()) {
info(L10n::t('Please login.') . EOL);
$o = '<br /><br />' . Login::form($a->query_string, Config::get('config', 'register_policy') === REGISTER_CLOSED ? 0 : 1);
$o = '<br /><br />' . Login::form($a->query_string, intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED ? 0 : 1);
return $o;
}