// Entries found?
if (SQL_NUMROWS($result) > 0) {
// At least one member was online so let's load them all
- $OUT = ''; $SW = 2;
+ $OUT = '';
while (list($userid, $nick, $last) = SQL_FETCHROW($result)) {
$nick2 = '---';
if (($nick != $userid) && (!empty($nick))) $nick2 = $nick;
// Transfer data to array
$content = array(
- 'sw' => $SW,
'userid' => $userid,
'nickname' => $nick2,
'points' => (countSumTotalData($userid, 'user_points', 'points') - countSumTotalData($userid, 'user_data', 'used_points')),
// Load template
$OUT .= loadTemplate('guest_active_row', true, $content);
-
- // Switch colors
- $SW = 3 - $SW;
- }
+ } // END - while
} else {
// No member was online today! :-(
$OUT = loadTemplate('guest_active_none_row', true);