mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/14972] replace all occurrences of sizeof() with the count()
PHPBB3-14972
This commit is contained in:
@@ -503,7 +503,7 @@ class acp_board
|
||||
$error[] = $user->lang['FORM_INVALID'];
|
||||
}
|
||||
// Do not write values if there is an error
|
||||
if (sizeof($error))
|
||||
if (count($error))
|
||||
{
|
||||
$submit = false;
|
||||
}
|
||||
@@ -683,7 +683,7 @@ class acp_board
|
||||
'L_TITLE' => $user->lang[$display_vars['title']],
|
||||
'L_TITLE_EXPLAIN' => $user->lang[$display_vars['title'] . '_EXPLAIN'],
|
||||
|
||||
'S_ERROR' => (sizeof($error)) ? true : false,
|
||||
'S_ERROR' => (count($error)) ? true : false,
|
||||
'ERROR_MSG' => implode('<br />', $error),
|
||||
|
||||
'U_ACTION' => $this->u_action)
|
||||
@@ -1103,7 +1103,7 @@ class acp_board
|
||||
$db->sql_query($sql);
|
||||
|
||||
// Already emptied for all...
|
||||
if (sizeof($values))
|
||||
if (count($values))
|
||||
{
|
||||
// Set for selected forums
|
||||
$sql = 'UPDATE ' . FORUMS_TABLE . '
|
||||
|
Reference in New Issue
Block a user