1
1
Fork 0

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

@ -201,7 +201,7 @@ function ping_init(App $a)
);
$mail_count = count($mails);
if (Config::get('config', 'register_policy') === REGISTER_APPROVE && is_site_admin()) {
if (intval(Config::get('config', 'register_policy')) === REGISTER_APPROVE && is_site_admin()) {
$regs = q(
"SELECT `contact`.`name`, `contact`.`url`, `contact`.`micro`, `register`.`created`
FROM `contact` RIGHT JOIN `register` ON `register`.`uid` = `contact`.`uid`