Fixes for transfer member->member
[mailer.git] / inc / modules / member / what-transfer.php
index 0d4ba2e0fa31bd56981eefb11cf290821b8a6878..7f0f3268deb4d3350fcec7f1a3d5de708fbdabdd 100644 (file)
@@ -325,7 +325,7 @@ switch ($mode) {
                                $row = array(
                                        'sw'     => $SW,
                                        'tid'    => $tid,
-                                       'stamp'  => generateDateTime($stamp, '3'),
+                                       'stamp'  => generateDateTime($stamp, 3),
                                        'userid' => $userid,
                                        'reason' => $reason,
                                        'points' => translateComma($points)
@@ -368,10 +368,10 @@ switch ($mode) {
                // First of all create the temporary table
                $result = SQL_QUERY("CREATE TEMPORARY TABLE `{?_MYSQL_PREFIX?}_transfers_tmp` (
 `trans_id` VARCHAR(12) NOT NULL DEFAULT '',
-`party_userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-`points` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+`party_userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`points` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `reason` VARCHAR(255) NOT NULL DEFAULT '',
-`time_trans` VARCHAR(10) NOT NULL DEFAULT '0',
+`time_trans` VARCHAR(10) NOT NULL DEFAULT 0,
 `trans_type` ENUM('IN','OUT') NOT NULL DEFAULT 'IN',
 KEY (`party_userid`)
 ) TYPE=HEAP", __FILE__, __LINE__);
@@ -414,7 +414,7 @@ KEY (`party_userid`)
 
                                // Prepare content for template
                                $content['sw']     = $SW;
-                               $content['time']   = generateDateTime($content['time_trans'], '3');
+                               $content['time']   = generateDateTime($content['time_trans'], 3);
                                $content['points'] = translateComma($content['points']);
 
                                // Load row template
@@ -533,10 +533,10 @@ LIMIT 1",
                if (SQL_NUMROWS($result) == 1) {
                        // Load newest transaction
                        list($newest) = SQL_FETCHROW($result);
-                       $content['settings'] = sprintf(getMessage('TRANSFER_LATEST_IS'), generateDateTime($newest, '3'));
+                       $content['settings'] = sprintf(getMessage('TRANSFER_LATEST_IS'), generateDateTime($newest, 3));
                } else {
                        // Load template
-                       $content['settings'] = loadTemplate('member_transfer_settings', true);
+                       $content['settings'] = loadTemplate('member_transfer_settings', true, $content);
                }
 
                // Free result