[ticket/9801] Use empty instead of sizeof

PHPBB3-9801
This commit is contained in:
Marc Alexander 2014-06-30 21:36:11 +02:00
parent eb9321c3a1
commit 330f21ab76

View file

@ -27,7 +27,7 @@ class viewonline_helper
public function get_user_page($session_page)
{
preg_match('#^([./\\]*+[a-z0-9/_-]+)#i', $session_page, $on_page);
if (!sizeof($on_page))
if (empty($on_page))
{
$on_page[1] = '';
}