aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2017-06-28 00:58:03 +0700
committerrxu <rxu@mail.ru>2017-07-17 16:57:00 +0700
commit797234e416c40cd602f9ee46d63bff53de303800 (patch)
tree49fccf0620a35db7ca400c2fef5f87f8d988dba5 /phpBB/includes/functions_download.php
parent[ticket/14972] Fix find_key_index method (diff)
downloadphpbb-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.php2
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;
}