diff options
author | 2017-06-28 00:58:03 +0700 | |
---|---|---|
committer | 2017-07-17 16:57:00 +0700 | |
commit | 797234e416c40cd602f9ee46d63bff53de303800 (patch) | |
tree | 49fccf0620a35db7ca400c2fef5f87f8d988dba5 /phpBB/includes/functions_download.php | |
parent | [ticket/14972] Fix find_key_index method (diff) | |
download | phpbb-797234e416c40cd602f9ee46d63bff53de303800.tar.gz phpbb-797234e416c40cd602f9ee46d63bff53de303800.tar.bz2 phpbb-797234e416c40cd602f9ee46d63bff53de303800.zip |
[ticket/14972] replace all occurrences of sizeof() with the count()
PHPBB3-14972
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r-- | phpBB/includes/functions_download.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index e00be1e01a..cee7c39035 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -568,7 +568,7 @@ function phpbb_parse_range_request($request_array, $filesize) $range = explode('-', trim($range_string)); // "-" is invalid, "0-0" however is valid and means the very first byte. - if (sizeof($range) != 2 || $range[0] === '' && $range[1] === '') + if (count($range) != 2 || $range[0] === '' && $range[1] === '') { continue; } |