]> git.mxchange.org Git - friendica.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 09:16:48 +0000 (10:16 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 09:19:48 +0000 (10:19 +0100)
- 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>
mod/regmod.php

index b6f1e4260f21829067e458a76f07d0d48a43c55d..7b99181dde92ad0add8f193ac0d7c77f8755e1c6 100644 (file)
@@ -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'])