]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_bonus.php
Fixes/rewrites for 'dublicate entry' bug
[mailer.git] / inc / monthly / monthly_bonus.php
index c4c7e8d0c791b96c9da28ebbe56dc41b1f8b061f..49c02b348b71bf75dbb4635bc68e67f979994eb6 100644 (file)
@@ -49,7 +49,7 @@ $curr = date("m", time());
 if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && ($GLOBALS['output_mode'] != 1)) {
        // Extension "autopurge" is inactive or purging of inactive accounts is deactivated
        $whereStatement1 = "WHERE `status`='CONFIRMED'";
-       $whereStatement2 = bigintval(getConfig('bonus_ranks'));
+       $whereStatement2 = getConfig(('bonus_ranks'));
 
        // Shall I keep inactive members away from here? (mostly wanted in an "active-rallye" ...)
        if (EXT_IS_ACTIVE("autopurge")) {
@@ -57,7 +57,7 @@ if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && ($GL
                if (getConfig('ap_inactive_since') > 0) {
                        // Okay, include last online timestamp
                        $whereStatement1 = sprintf("WHERE `status`='CONFIRMED' AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig('ap_inactive_since'));
-                       $whereStatement2 = bigintval(getConfig('bonus_ranks'));
+                       $whereStatement2 = getConfig(('bonus_ranks'));
                } // END - if
        } // END - if