Adjust the check according to review comments

This commit is contained in:
Val Bancer 2018-12-11 16:36:32 +01:00 committed by GitHub
parent addd538526
commit 0f2bbf505d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1465,7 +1465,7 @@ class CakeResponse {
$file->open('rb'); $file->open('rb');
$end = $start = false; $end = $start = false;
if (is_array($range) && !empty($range)) { if ($range && is_array($range)) {
list($start, $end) = $range; list($start, $end) = $range;
} }
if ($start !== false) { if ($start !== false) {