Enforce systen.register_policy value type
This commit is contained in:
parent
9b01a23c9b
commit
67dc08d120
14 changed files with 19 additions and 19 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue