X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-bonus.php;h=640f8384c45ac48740773252a2741d1105fcc11c;hb=0b4c98232a5c9c5b934a5049dc3c84ad32ab1125;hp=140b809cc91fa2bc4b7e7cc36ba699ef7769ab82;hpb=100ad0fad5206faec6d12a75f233f023eb5137d2;p=mailer.git diff --git a/inc/extensions/ext-bonus.php b/inc/extensions/ext-bonus.php index 140b809cc9..640f8384c4 100644 --- a/inc/extensions/ext-bonus.php +++ b/inc/extensions/ext-bonus.php @@ -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...