]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-bonus.php
Introduced padLeftZero()
[mailer.git] / inc / extensions / ext-bonus.php
index 4ba29ce01f4376985958b1574e2f5af6cb556f3c..a076266253d6f8bb0d54c2207ce6e018cfeeb1c9 100644 (file)
@@ -365,14 +365,14 @@ INDEX `userid` (`userid`)",
 
                        case '0.5.6': // SQL queries for v0.5.6
                                // Get current month
-                               $curr = str_pad(getMonth(), 2, '0', STR_PAD_LEFT);
+                               $curr = padLeftZero(getMonth());
                                if ($curr == '00') $curr = '12';
 
                                // Generate timemark...
                                $mark = mktime(0, 0, 0, $curr, 1, getYear());
 
                                // Update accounts which are not active last months
-                               addExtensionSql("UPDATE
+                               addExtensionSql('UPDATE
        `{?_MYSQL_PREFIX?}_user_data`
 SET
        `turbo_bonus`=0,
@@ -381,9 +381,9 @@ SET
        `bonus_stats`=0,
        `bonus_ref`=0
 WHERE
-       `last_online` < ".$mark."
+       `last_online` < ' . $mark . '
 ORDER BY
-       `userid` ASC");
+       `userid` ASC');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Ein weiterer Scriptfehler hat nur die Gewinner aus der Aktiv-Rallye genommen. Die anderen Mitglieder sind somit &quot;nach oben gerutsch&quot;.");