mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/14972] replace all occurrences of sizeof() with the count()
PHPBB3-14972
This commit is contained in:
@@ -204,7 +204,7 @@ class ajax_iohandler extends iohandler_base
|
||||
|
||||
if (in_array($input_options['type'], array('select', 'radio'), true))
|
||||
{
|
||||
for ($i = 0, $total = sizeof($input_options['options']); $i < $total; $i++)
|
||||
for ($i = 0, $total = count($input_options['options']); $i < $total; $i++)
|
||||
{
|
||||
if (isset($input_options['options'][$i]['label']))
|
||||
{
|
||||
@@ -381,7 +381,7 @@ class ajax_iohandler extends iohandler_base
|
||||
*/
|
||||
public function set_active_stage_menu($menu_path)
|
||||
{
|
||||
$this->nav_data['active'] = $menu_path[sizeof($menu_path) - 1];
|
||||
$this->nav_data['active'] = $menu_path[count($menu_path) - 1];
|
||||
$this->send_response();
|
||||
}
|
||||
|
||||
@@ -390,7 +390,7 @@ class ajax_iohandler extends iohandler_base
|
||||
*/
|
||||
public function set_finished_stage_menu($menu_path)
|
||||
{
|
||||
$this->nav_data['finished'][] = $menu_path[sizeof($menu_path) - 1];
|
||||
$this->nav_data['finished'][] = $menu_path[count($menu_path) - 1];
|
||||
$this->send_response();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user