1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

[ticket/14972] replace all occurrences of sizeof() with the count()

PHPBB3-14972
This commit is contained in:
rxu
2017-06-28 00:58:03 +07:00
committed by Marc Alexander
parent ff18802656
commit f8fbe37936
165 changed files with 983 additions and 983 deletions

View File

@@ -38,7 +38,7 @@ function mcp_post_details($id, $mode, $action)
add_form_key('mcp_post_details');
if (!sizeof($post_info))
if (!count($post_info))
{
trigger_error('POST_NOT_EXIST');
}
@@ -165,7 +165,7 @@ function mcp_post_details($id, $mode, $action)
}
$db->sql_freeresult($result);
if (sizeof($attachments))
if (count($attachments))
{
$user->add_lang('viewtopic');
$update_count = array();
@@ -409,7 +409,7 @@ function mcp_post_details($id, $mode, $action)
);
}
if (sizeof($users_ary))
if (count($users_ary))
{
// Get the usernames
$sql = 'SELECT user_id, username
@@ -495,7 +495,7 @@ function mcp_post_details($id, $mode, $action)
$user_select = '';
if (sizeof($usernames_ary))
if (count($usernames_ary))
{
ksort($usernames_ary);
@@ -656,7 +656,7 @@ function change_poster(&$post_info, $userdata)
// Renew post info
$post_info = phpbb_get_post_data(array($post_id), false, true);
if (!sizeof($post_info))
if (!count($post_info))
{
trigger_error('POST_NOT_EXIST');
}