Another fix for reset scripts (bonus)
[mailer.git] / inc / libs / bonus_functions.php
index 86d7f83..a90b50b 100644 (file)
@@ -241,11 +241,12 @@ function BONUS_POINTS_HANDLER($MODE) {
 function BONUS_PURGE_EXPIRED_TURBO_BONUS()
 {
        global $_CONFIG;
+
        // Remove entries
        $result = SQL_QUERY("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_bonus_turbo WHERE timemark < (UNIX_TIMESTAMP() - ".$_CONFIG['bonus_timeout'].")", __FILE__, __LINE__);
        if (SQL_AFFECTEDROWS() > 0) {
                // Send out email to admin
-               SEND_ADMIN_NOTIFICATION(AUTOPURGE_ADMIN_TURBO_SUBJECT, "admin_autopurge_turbo", $DELETED, "");
+               SEND_ADMIN_NOTIFICATION(AUTOPURGE_ADMIN_TURBO_SUBJECT, "admin_autopurge_turbo", SQL_AFFECTEDROWS(), "");
        }
 }
 //