ORDER BY
p.payout_timestamp DESC", __FILE__, __LINE__);
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// List found payouts
- $OUT = ''; $SW = 2;
+ $OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
if ($content['status'] == 'NEW') {
// Generate links for direct accepting and rejecting
} // END - if
// Add/Translate some data
- $content['sw'] = $SW;
$content['payout_timestamp'] = generateDateTime($content['payout_timestamp'], 2);
// Add row and switch color
$OUT .= loadTemplate('admin_list_payouts_row', true, $content);
- $SW = 3 - $SW;
} // END - while
// Free memory