mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adjust the check according to review comments
This commit is contained in:
parent
addd538526
commit
0f2bbf505d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue