Skip to content

Commit

Permalink
Fix invalid condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Nov 18, 2018
1 parent c005791 commit addd538
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 (!empty($range)) {
if (is_array($range) && !empty($range)) {
list($start, $end) = $range;
}
if ($start !== false) {
Expand Down

0 comments on commit addd538

Please sign in to comment.