From: zottel Date: Sun, 4 Nov 2012 10:07:11 +0000 (+0100) Subject: Worked in fermionic's comments (not count($r)). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dd1e735efb27b0faff50883ca5379df26d9afe67;p=friendica.git Worked in fermionic's comments (not count($r)). --- diff --git a/include/poller.php b/include/poller.php index ce8399a485..1af23eb13b 100644 --- a/include/poller.php +++ b/include/poller.php @@ -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']));