X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_transfer.php;h=16720437e975fe6f7dac6df60c782967c35856ab;hp=24cff28bedb412b1ea65e45a6c3b65b4ea8981df;hb=f928ad2bed60fa256d0641eaf6d2c027a2944688;hpb=7b0f17cd637e388049d2167811e4332cec1e979b diff --git a/inc/modules/admin/what-list_transfer.php b/inc/modules/admin/what-list_transfer.php index 24cff28bed..16720437e9 100644 --- a/inc/modules/admin/what-list_transfer.php +++ b/inc/modules/admin/what-list_transfer.php @@ -48,8 +48,7 @@ ADD_DESCR('admin', __FILE__); // We only need outgoing transfers $result = SQL_QUERY("SELECT userid, to_uid, trans_id, points, reason, time_trans FROM `{!_MYSQL_PREFIX!}_user_transfers_out` ORDER BY trans_id", __FILE__, __LINE__); $total = 0; -if (SQL_NUMROWS($result) > 0) -{ +if (SQL_NUMROWS($result) > 0) { // Output rows $OUT = ''; $SW = 2; while ($content = SQL_FETCHARRAY($result)) { @@ -57,7 +56,7 @@ if (SQL_NUMROWS($result) > 0) $content = array( 'sw' => $SW, 'idx' => $content['trans_id'], - 'stamp' => generateDateTime($content['time_trans'], "3"), + 'stamp' => generateDateTime($content['time_trans'], '3'), 'from_link' => generateUserProfileLink($content['userid']), 'to_link' => generateUserProfileLink($content['to_uid']), 'reason' => wordwrap($content['reason'], 15), @@ -65,15 +64,13 @@ if (SQL_NUMROWS($result) > 0) ); // Load row template add points and switch color - $OUT .= LOAD_TEMPLATE("admin_list_transfer_row", true, $content); + $OUT .= LOAD_TEMPLATE('admin_list_transfer_row', true, $content); $total += $content['points']; $SW = 3 - $SW; } // Free memory SQL_FREERESULT($result); -} - else -{ +} else { // Nothing for in and out $OUT = " @@ -96,10 +93,10 @@ define('__TRANSFER_TITLE', getMessage('TRANSFER_LIST_ALL')); define('__TRANSFER_SUM', getMessage('TRANSFER_TOTAL_BALANCE')); // Don't show a delete button -define('__TRANSFER_DELETE', " "); +define('__TRANSFER_DELETE', ' '); // Load final template -LOAD_TEMPLATE("admin_list_transfer"); +LOAD_TEMPLATE('admin_list_transfer'); // ?>