mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/14972] replace all occurrences of sizeof() with the count()
PHPBB3-14972
This commit is contained in:
@@ -94,13 +94,13 @@ class bbcode
|
||||
${$type}['replace'][] = $replace;
|
||||
}
|
||||
|
||||
if (sizeof($str['search']))
|
||||
if (count($str['search']))
|
||||
{
|
||||
$message = str_replace($str['search'], $str['replace'], $message);
|
||||
$str = array('search' => array(), 'replace' => array());
|
||||
}
|
||||
|
||||
if (sizeof($preg['search']))
|
||||
if (count($preg['search']))
|
||||
{
|
||||
// we need to turn the entities back into their original form to allow the
|
||||
// search patterns to work properly
|
||||
@@ -191,7 +191,7 @@ class bbcode
|
||||
}
|
||||
}
|
||||
|
||||
if (sizeof($sql))
|
||||
if (count($sql))
|
||||
{
|
||||
global $db;
|
||||
|
||||
|
Reference in New Issue
Block a user