From 5a90e7f8225abe26d836bd006494fff01fc42d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Tue, 20 Dec 2016 10:16:48 +0100 Subject: [PATCH] Continued a bit: - converted some bad checks to use dbm::is_result() - added space between "if" and brace - added curly braces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- mod/regmod.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/regmod.php b/mod/regmod.php index b6f1e4260f..7b99181dde 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -12,15 +12,17 @@ function user_allow($hash) { ); - if(! dbm::is_result($register)) + if (! dbm::is_result($register)) { return false; + } $user = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1", intval($register[0]['uid']) ); - if(! dbm::is_result($user)) + if (! dbm::is_result($user)) { killme(); + } $r = q("DELETE FROM `register` WHERE `hash` = '%s'", dbesc($register[0]['hash'])