X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-transfer.php;h=7f0f3268deb4d3350fcec7f1a3d5de708fbdabdd;hp=0d4ba2e0fa31bd56981eefb11cf290821b8a6878;hb=5b2627141a2053159372f717bd4717600d60d369;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e diff --git a/inc/modules/member/what-transfer.php b/inc/modules/member/what-transfer.php index 0d4ba2e0fa..7f0f3268de 100644 --- a/inc/modules/member/what-transfer.php +++ b/inc/modules/member/what-transfer.php @@ -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