]> git.mxchange.org Git - friendica.git/commitdiff
Worked in fermionic's comments (not count($r)).
authorzottel <github@zottel.net>
Sun, 4 Nov 2012 10:07:11 +0000 (11:07 +0100)
committerzottel <github@zottel.net>
Sun, 4 Nov 2012 10:07:11 +0000 (11:07 +0100)
include/poller.php

index ce8399a485baa52970234e31b0a959cb645d0613..1af23eb13bae095b7422121b3667557e07aa55e8 100644 (file)
@@ -71,7 +71,7 @@ function poller_run($argv, $argc){
        // delete user and contact records for recently removed accounts
 
        $r = q("SELECT * FROM `user` WHERE `account_removed` = 1 AND `account_expires_on` < UTC_TIMESTAMP() - INTERVAL 3 DAY");
-       if (count($r)) {
+       if ($r) {
                foreach($r as $user) {
                        q("DELETE FROM `contact` WHERE `uid` = %d", intval($user['uid']));
                        q("DELETE FROM `user` WHERE `uid` = %d", intval($user['uid']));