aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewonline.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-05-13 17:11:03 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-05-13 17:11:03 +0000
commita325e482a8405a13fbea6dc3149dbf2dda704f5a (patch)
treef240eff84a4294d641d35c05735ad4e7fe04abee /phpBB/viewonline.php
parent99fbeda88922801bb8ae24aa001577a8f1a53cd7 (diff)
downloadforums-a325e482a8405a13fbea6dc3149dbf2dda704f5a.tar
forums-a325e482a8405a13fbea6dc3149dbf2dda704f5a.tar.gz
forums-a325e482a8405a13fbea6dc3149dbf2dda704f5a.tar.bz2
forums-a325e482a8405a13fbea6dc3149dbf2dda704f5a.tar.xz
forums-a325e482a8405a13fbea6dc3149dbf2dda704f5a.zip
Small error in viewonline fixed
git-svn-id: file:///svn/phpbb/trunk@285 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r--phpBB/viewonline.php26
1 files changed, 6 insertions, 20 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 412e3bc8d3..88e69a7837 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -88,25 +88,11 @@ if($online_count)
if(!(ix % 2))
{
- if(isset($theme['td_color1']))
- {
- $row_color = "#".$theme['td_color1'];
- }
- else
- {
- $row_color = "#DDDDDD";
- }
+ $row_color = "#".$theme['td_color1'];
}
else
{
- if(isset($theme['td_color2']))
- {
- $row_color = "#".$theme['td_color2'];
- }
- else
- {
- $row_color = "#CCCCCC";
- }
+ $row_color = "#".$theme['td_color2'];
}
if($onlinerow[$i]['user_id'] != ANONYMOUS && $onlinerow[$i]['user_id'] != DELETED)
@@ -178,12 +164,12 @@ if($online_count)
}
else
{
- for($j = 0; $j < count($forumrow); $j++)
+ for($j = 0; $j < count($forumsrow); $j++)
{
- if($onlinerow[$i]['session_page'] == $forumrow[$j]['forum_id'])
+ if($onlinerow[$i]['session_page'] == $forumsrow[$j]['forum_id'])
{
- $location_url = append_sid("viewforum.".$phpEx."?".POST_FORUM_URL."=".$forumrow[$j]['forum_id']);
- $location = $forumrow[$j]['forum_name'];
+ $location_url = append_sid("viewforum.".$phpEx."?".POST_FORUM_URL."=".$forumsrow[$j]['forum_id']);
+ $location = $forumsrow[$j]['forum_name'];
break;
}
}