Obsoleted parameters to SQL_AFFECTED_ROWS() removed, OPEN_TABLE() and CLOSE_TABLE...
[mailer.git] / inc / libs / bonus_functions.php
index 266866130f5455344450cb2e255e51e7858960dd..9fa4477f44fae9a6d020a763bfe6e0b65854a223 100644 (file)
@@ -240,9 +240,7 @@ function BONUS_PURGE_EXPIRED_TURBO_BONUS()
        global $_CONFIG;
        // Remove entries
        $result = SQL_QUERY("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_bonus_turbo WHERE timemark < ".(time() - $_CONFIG['bonus_timeout']), __FILE__, __LINE__);
-       $DELETED = SQL_AFFECTEDROWS($result);
-       if ($DELETED > 0)
-       {
+       if (SQL_AFFECTEDROWS() > 0) {
                // Send out email to admin
                SEND_ADMIN_NOTIFICATION(AUTOPURGE_ADMIN_TURBO_SUBJECT, "admin_autopurge_turbo", $DELETED, "");
        }