From 9f682ea220e59692dc94907888c2046991729038 Mon Sep 17 00:00:00 2001 From: v12mike Date: Tue, 28 Jul 2020 23:54:57 -0400 Subject: [PATCH] [ticket/16558] Improve viewonline page Remove unsupport PHP syntax PHPBB3-16558 --- phpBB/viewonline.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index e5affc8e2f..1596cab26c 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -270,14 +270,14 @@ while ($row = $db->sql_fetchrow($result)) $matches = array(); $pattern = '#(viewtopic|posting)\.' . $phpEx . '((\?|&)\w+=\w+)*(\?|&)'; - preg_match($pattern . 'f=(\d+)#', $row['session_page'], $matches, PREG_UNMATCHED_AS_NULL); + preg_match($pattern . 'f=(\d+)#', $row['session_page'], $matches); if ($matches[$array_match_index]) { $forum_id = (int) $matches[$array_match_index]; } else { - preg_match($pattern . 't=(\d+)#', $row['session_page'], $matches, PREG_UNMATCHED_AS_NULL); + preg_match($pattern . 't=(\d+)#', $row['session_page'], $matches); if ($matches[$array_match_index]) { $topic_id = $matches[$array_match_index]; @@ -290,7 +290,7 @@ while ($row = $db->sql_fetchrow($result)) } else { - preg_match($pattern . 'p=(\d+)#', $row['session_page'], $matches, PREG_UNMATCHED_AS_NULL); + preg_match($pattern . 'p=(\d+)#', $row['session_page'], $matches); if ($matches[$array_match_index]) { $post_id = $matches[$array_match_index];