]> git.mxchange.org Git - mailer.git/commitdiff
Another fix for reset scripts (bonus)
authorRoland Häder <roland@mxchange.org>
Fri, 5 Dec 2008 22:59:02 +0000 (22:59 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 5 Dec 2008 22:59:02 +0000 (22:59 +0000)
inc/databases.php
inc/libs/bonus_functions.php

index d1341d0e3e335381be905eaeff7057bb4b7ae280..3e793e79ac3af51a22e7f86505eacdae7eab7449 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
-define('CURR_SVN_REVISION', "600");
+define('CURR_SVN_REVISION', "601");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 86d7f83f9ac434ab007f6599f7ebf948ffb34660..a90b50b6c57c55c2a8b86c38292f7261bb23a0a7 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(), "");
        }
 }
 //