]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-bonus.php
Rewrote handling of 'menu adverts' to a filter. This allows e.g. ext-clickbanner...
[mailer.git] / inc / extensions / ext-bonus.php
index 140b809cc91fa2bc4b7e7cc36ba699ef7769ab82..640f8384c45ac48740773252a2741d1105fcc11c 100644 (file)
@@ -203,8 +203,8 @@ INDEX `userid` (`userid`)",
                                addExtensionChangeTableColumnSql('user_data', 'login_bonus', 'login_bonus', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
 
                                // For configuration, we need different entries
-                               addConfigChangeSql('user_data', 'turbo_bonus', 'turbo_bonus', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
-                               addConfigChangeSql('user_data', 'login_bonus', 'login_bonus', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
+                               addExtensionAddTableColumnSql('user_data', 'turbo_bonus', 'turbo_bonus', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
+                               addExtensionAddTableColumnSql('user_data', 'login_bonus', 'login_bonus', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("5 Nachkommastellen implementiert");
@@ -365,8 +365,7 @@ INDEX `userid` (`userid`)",
 
                        case '0.5.6': // SQL queries for v0.5.6
                                // Get current month
-                               $curr = getMonth();
-                               if (strlen($curr) == 1) $curr = '0' . $curr;
+                               $curr = str_pad(getMonth(), 2, '0', STR_PAD_LEFT);
                                if ($curr == '00') $curr = '12';
 
                                // Generate timemark...