From c21a1799c2dd8a3571230ff87594a415b502b563 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 21 Dec 2010 23:02:55 +0000 Subject: [PATCH] Yet another wrong array element fixed... :-( --- inc/autopurge/purge-mails.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/autopurge/purge-mails.php b/inc/autopurge/purge-mails.php index 795e2d1fb7..f2da3aa6c1 100644 --- a/inc/autopurge/purge-mails.php +++ b/inc/autopurge/purge-mails.php @@ -92,7 +92,7 @@ SQL_FREERESULT($result_mails); // Now let's check for stats entries as well; $result_mails = SQL_QUERY("SELECT - `userid` AS sender + `userid` AS `sender` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE @@ -108,7 +108,7 @@ if (!SQL_HASZERONUMS($result_mails)) { if (!fetchUserData($content['sender'])) { // Okay we found some mails! SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `userid`=%s", - array(bigintval($content['userid'])), __FILE__, __LINE__); + array(bigintval($content['sender'])), __FILE__, __LINE__); // Get all affected (deleted) rows $deletedStats += SQL_AFFECTEDROWS(); -- 2.39.5