X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-payout.php;h=edb05b80424fb096c29798ba73caf3bcfb007072;hb=30ae22f62ae87c53a56baf0d134569ba91011111;hp=1283c94854c0057fbb2df63f85018afa43a51689;hpb=29385a0483bbcbbe940a32a49d488b1d5add15c5;p=mailer.git diff --git a/inc/modules/member/what-payout.php b/inc/modules/member/what-payout.php index 1283c94854..edb05b8042 100644 --- a/inc/modules/member/what-payout.php +++ b/inc/modules/member/what-payout.php @@ -77,7 +77,7 @@ WHERE ORDER BY `type` ASC", array($totalPoints), __FILE__, __LINE__); - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // Free memory SQL_FREERESULT($result); @@ -95,9 +95,9 @@ WHERE ORDER BY p.payout_timestamp DESC", array(getMemberId()), __FILE__, __LINE__); - if (SQL_NUMROWS($result_payouts) > 0) { + if (!SQL_HASZERONUMS($result_payouts)) { // List all his requests - $OUT = ''; $SW = 2; + $OUT = ''; while ($content = SQL_FETCHARRAY($result_payouts)) { // Translate status $content['status'] = translatePayoutStatus(); @@ -118,7 +118,6 @@ ORDER BY // Prepare data for the template $content = array( - 'sw' => $SW, 'target_account' => $content['target_account'], 'payout_total' => $content['payout_total'], 'target_bank' => $content['target_bank'], @@ -129,12 +128,11 @@ ORDER BY // Load row template and switch colors $OUT .= loadTemplate('member_payout_row', true, $content); - $SW = 3 - $SW; - } + } // END - while // Load template loadTemplate('member_payout', false, $OUT); - } + } // END - if // Free memory SQL_FREERESULT($result_payouts);