converted more to dbm::is_result() + added braces/space
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
0e58bf6675
commit
51716957b2
13 changed files with 61 additions and 41 deletions
|
@ -16,8 +16,9 @@ function poco_init(App &$a) {
|
|||
}
|
||||
if(! x($user)) {
|
||||
$c = q("SELECT * FROM `pconfig` WHERE `cat` = 'system' AND `k` = 'suggestme' AND `v` = 1");
|
||||
if(! count($c))
|
||||
if (! dbm::is_result($c)) {
|
||||
http_status_exit(401);
|
||||
}
|
||||
$system_mode = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue