From aa27f7442553d0a8341e5611d70b8e4521bbce03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 5 Dec 2008 22:59:02 +0000 Subject: [PATCH] Another fix for reset scripts (bonus) --- inc/databases.php | 2 +- inc/libs/bonus_functions.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index d1341d0e3e..3e793e79ac 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -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); diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index 86d7f83f9a..a90b50b6c5 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -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(), ""); } } // -- 2.39.5