mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/9801] Use empty instead of sizeof
PHPBB3-9801
This commit is contained in:
parent
eb9321c3a1
commit
330f21ab76
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class viewonline_helper
|
||||||
public function get_user_page($session_page)
|
public function get_user_page($session_page)
|
||||||
{
|
{
|
||||||
preg_match('#^([./\\]*+[a-z0-9/_-]+)#i', $session_page, $on_page);
|
preg_match('#^([./\\]*+[a-z0-9/_-]+)#i', $session_page, $on_page);
|
||||||
if (!sizeof($on_page))
|
if (empty($on_page))
|
||||||
{
|
{
|
||||||
$on_page[1] = '';
|
$on_page[1] = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue