$row = array(
'sw' => $SW,
'tid' => $tid,
- 'stamp' => generateDateTime($stamp, '3'),
+ 'stamp' => generateDateTime($stamp, 3),
'userid' => $userid,
'reason' => $reason,
'points' => translateComma($points)
// 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__);
// 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
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);