X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-active.php;h=17e4d337976e17f695a58345c38f4ea852cf9d7c;hp=bf342cfea86888313db1b12d43ff4e6af3582ac8;hb=cf3765c38cf0a76f396aca291f71858936e92956;hpb=7f5ffcc103a856b8867ac5739dcf0a3b6710413a diff --git a/inc/modules/guest/what-active.php b/inc/modules/guest/what-active.php index bf342cfea8..17e4d33797 100644 --- a/inc/modules/guest/what-active.php +++ b/inc/modules/guest/what-active.php @@ -70,14 +70,13 @@ LIMIT {?active_limit?}", __FILE__, __LINE__); // 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')), @@ -86,10 +85,7 @@ if (SQL_NUMROWS($result) > 0) { // 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);