From: Roland Häder Date: Tue, 21 Dec 2010 23:02:55 +0000 (+0000) Subject: Yet another wrong array element fixed... :-( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c21a1799c2dd8a3571230ff87594a415b502b563;p=mailer.git Yet another wrong array element fixed... :-( --- 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();