mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16558] Improve viewonline page
Remove unsupport PHP syntax PHPBB3-16558
This commit is contained in:
parent
aa3472ce76
commit
9f682ea220
1 changed files with 3 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue