Fixes/rewrites for 'dublicate entry' bug
[mailer.git] / inc / monthly / monthly_beg.php
index e4c4e8e7b9b6836dcc83adde986be4bca9dde1f6..69f4a902ed10268cf460c24bdf934a96b23a5e9d 100644 (file)
@@ -50,12 +50,12 @@ $curr = date("m", time());
 if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getConfig('beg_ranks') > 0) && ($GLOBALS['output_mode'] != 1)) {
        // Extension "autopurge" is inactive or purging of inactive accounts is deactivated
        $whereStatement1 = "";
-       $whereStatement2 = bigintval(getConfig('beg_ranks'));
+       $whereStatement2 = getConfig(('beg_ranks'));
 
        // Shall we exclude webmaster's own userid?
        if ((getConfig('beg_include_own') != "Y") && (getConfig('beg_uid') > 0)) {
                // Exclude it
-               $whereStatement1 = sprintf(" AND userid != %s", bigintval(getConfig('beg_uid')));
+               $whereStatement1 = sprintf(" AND userid != %s", getConfig(('beg_uid')));
        } // END - if
 
        // Let's check if there are some points left we can "pay"...
@@ -63,7 +63,7 @@ if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getC
                // Use last online stamp only when autopurge for inactive members is activated
                if ((getConfig('ap_inactive_since') > 0) && (getConfig('beg_active') == "Y")) {
                        // Okay, include last online timestamp
-                       $whereStatement1 .= sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", bigintval(getConfig('ap_inactive_since')));;
+                       $whereStatement1 .= sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig(('ap_inactive_since')));;
                } // END - if
        } // END - if