mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 20:17:58 +02:00
Another bodge to fix a problem temporarily
git-svn-id: file:///svn/phpbb/trunk@698 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@ -96,18 +96,10 @@ $guest_users = 0;
|
|||||||
$online_count = $db->sql_numrows($result);
|
$online_count = $db->sql_numrows($result);
|
||||||
if($online_count)
|
if($online_count)
|
||||||
{
|
{
|
||||||
|
$count = 0;
|
||||||
|
|
||||||
for($i = 0; $i < $online_count; $i++)
|
for($i = 0; $i < $online_count; $i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!($i % 2))
|
|
||||||
{
|
|
||||||
$row_color = "#" . $theme['td_color1'];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$row_color = "#" . $theme['td_color2'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if($onlinerow[$i]['user_id'] != ANONYMOUS)
|
if($onlinerow[$i]['user_id'] != ANONYMOUS)
|
||||||
{
|
{
|
||||||
if($onlinerow[$i]['session_logged_in'])
|
if($onlinerow[$i]['session_logged_in'])
|
||||||
@ -206,6 +198,16 @@ if($online_count)
|
|||||||
|
|
||||||
if( $logged_on && ( !$hidden || $userdata['user_level'] == ADMIN ) )
|
if( $logged_on && ( !$hidden || $userdata['user_level'] == ADMIN ) )
|
||||||
{
|
{
|
||||||
|
if($count % 2))
|
||||||
|
{
|
||||||
|
$row_color = "#" . $theme['td_color1'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$row_color = "#" . $theme['td_color2'];
|
||||||
|
}
|
||||||
|
$count++;
|
||||||
|
|
||||||
$template->assign_block_vars("userrow", array(
|
$template->assign_block_vars("userrow", array(
|
||||||
"ROW_COLOR" => $row_color,
|
"ROW_COLOR" => $row_color,
|
||||||
"USERNAME" => $username,
|
"USERNAME" => $username,
|
||||||
|
Reference in New Issue
Block a user