Fix invalid condition

This commit is contained in:
Val Bancer 2018-11-18 22:48:34 +01:00
parent c00579153b
commit addd538526

View file

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