From 0f2bbf505d82fd9cebaeaf451b60ddf0b25110dd Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Tue, 11 Dec 2018 16:36:32 +0100 Subject: [PATCH] Adjust the check according to review comments --- lib/Cake/Network/CakeResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index 556b43767..cd24b2aad 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -1465,7 +1465,7 @@ class CakeResponse { $file->open('rb'); $end = $start = false; - if (is_array($range) && !empty($range)) { + if ($range && is_array($range)) { list($start, $end) = $range; } if ($start !== false) {