mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48: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);
|
||||
}
|
||||
$checks = compact('etagMatches', 'timeMatches');
|
||||
if (empty($checks)) {
|
||||
if (empty(array_filter($checks))) {
|
||||
return false;
|
||||
}
|
||||
$notModified = !in_array(false, $checks, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue