X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_transfer.php;h=8da60d30ce57e0cf1d054a48a7a8968613a4510b;hb=12effdb00f104773905152bfb2950496c2efaec4;hp=bb42974a020a0bbe4da7942657d0925c21d9fb09;hpb=d495bd859975d08ee459d03c9b1cd51dd9b9304d;p=mailer.git diff --git a/inc/modules/admin/what-list_transfer.php b/inc/modules/admin/what-list_transfer.php index bb42974a02..8da60d30ce 100644 --- a/inc/modules/admin/what-list_transfer.php +++ b/inc/modules/admin/what-list_transfer.php @@ -1,7 +1,7 @@ 0) { +if (!SQL_HASZERONUMS($result)) { // Output rows - $OUT = ''; $SW = 2; + $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { // Prepare data for the row template - $content = array( - 'sw' => $SW, - 'trans_id' => $content['trans_id'], - 'stamp' => generateDateTime($content['time_trans'], 3), - 'from_link' => generateUserProfileLink($content['userid']), - 'to_link' => generateUserProfileLink($content['to_userid']), - 'reason' => wordwrap($content['reason'], 15), - 'points' => translateComma($content['points']), - ); + $content['time_trans'] = generateDateTime($content['time_trans'], 3); + $content['reason'] = wordwrap($content['reason'], 15); // Load row template add points and switch color $OUT .= loadTemplate('admin_list_transfer_row', true, $content); - $total += $content['points']; $SW = 3 - $SW; - } + $total += $content['points']; + } // END - while // Free memory SQL_FREERESULT($result); } else { // Nothing for in and out - $OUT = "