Skip to content

Commit

Permalink
Adjust the check according to review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Dec 11, 2018
1 parent addd538 commit 0f2bbf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeResponse.php
Expand Up @@ -1465,7 +1465,7 @@ protected function _sendFile($file, $range) {
$file->open('rb');

$end = $start = false;
if (is_array($range) && !empty($range)) {
if ($range && is_array($range)) {
list($start, $end) = $range;
}
if ($start !== false) {
Expand Down

0 comments on commit 0f2bbf5

Please sign in to comment.