Yet another wrong array element fixed... :-(
authorRoland Häder <roland@mxchange.org>
Tue, 21 Dec 2010 23:02:55 +0000 (23:02 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 21 Dec 2010 23:02:55 +0000 (23:02 +0000)
inc/autopurge/purge-mails.php

index 795e2d1..f2da3aa 100644 (file)
@@ -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();