mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Fixes issue raised by @garas
This commit is contained in:
parent
af516eebb0
commit
1fca92fb4e
1 changed files with 1 additions and 1 deletions
|
@ -1170,7 +1170,7 @@ class CakeResponse {
|
||||||
$timeMatches = strtotime($this->modified()) === strtotime($modifiedSince);
|
$timeMatches = strtotime($this->modified()) === strtotime($modifiedSince);
|
||||||
}
|
}
|
||||||
$checks = compact('etagMatches', 'timeMatches');
|
$checks = compact('etagMatches', 'timeMatches');
|
||||||
if (empty($checks)) {
|
if (empty(array_filter($checks))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$notModified = !in_array(false, $checks, true);
|
$notModified = !in_array(false, $checks, true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue