mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02: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:
@@ -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':
|
||||||
|
Reference in New Issue
Block a user