mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
#29895 - prevent php notice on viewonline
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8677 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e23fbf48a7
commit
a6fb65baec
1 changed files with 2 additions and 1 deletions
|
@ -225,8 +225,9 @@ while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
case 'posting':
|
case 'posting':
|
||||||
preg_match('#mode=([a-z]+)#', $row['session_page'], $on_page);
|
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 'reply':
|
||||||
case 'quote':
|
case 'quote':
|
||||||
|
|
Loading…
Add table
Reference in a new issue