Continued a bit:
- converted some bad checks to use dbm::is_result() - added space between "if" and brace - added curly braces Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
fb676335db
commit
5a90e7f822
1 changed files with 4 additions and 2 deletions
|
@ -12,15 +12,17 @@ function user_allow($hash) {
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
if(! dbm::is_result($register))
|
if (! dbm::is_result($register)) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$user = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1",
|
$user = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1",
|
||||||
intval($register[0]['uid'])
|
intval($register[0]['uid'])
|
||||||
);
|
);
|
||||||
|
|
||||||
if(! dbm::is_result($user))
|
if (! dbm::is_result($user)) {
|
||||||
killme();
|
killme();
|
||||||
|
}
|
||||||
|
|
||||||
$r = q("DELETE FROM `register` WHERE `hash` = '%s'",
|
$r = q("DELETE FROM `register` WHERE `hash` = '%s'",
|
||||||
dbesc($register[0]['hash'])
|
dbesc($register[0]['hash'])
|
||||||
|
|
Loading…
Reference in a new issue