From dd1e735efb27b0faff50883ca5379df26d9afe67 Mon Sep 17 00:00:00 2001 From: zottel Date: Sun, 4 Nov 2012 11:07:11 +0100 Subject: [PATCH] Worked in fermionic's comments (not count($r)). --- include/poller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])); -- 2.39.5