]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
The first queries are replaced with the new functions. More to come ...
[friendica.git] / mod / regmod.php
index 19fc047cc51abba9d256bd22c75ebbdce347ee1e..884790458127285eba43016e92f0e31abb3968e3 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use Friendica\App;
+
 require_once('include/enotify.php');
 require_once('include/user.php');
 
@@ -54,7 +56,7 @@ function user_allow($hash) {
 
        pop_lang();
 
-       if ($res) {
+       if($res) {
                info( t('Account approved.') . EOL );
                return true;
        }
@@ -72,9 +74,8 @@ function user_deny($hash) {
                dbesc($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'])