aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/viewonline.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 788861915c..fba2bca69a 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -225,8 +225,9 @@ while ($row = $db->sql_fetchrow($result))
{
case 'posting':
preg_match('#mode=([a-z]+)#', $row['session_page'], $on_page);
+ $posting_mode = (!empty($on_page[1])) ? $on_page[1] : '';
- switch ($on_page[1])
+ switch ($posting_mode)
{
case 'reply':
case 'quote':