Fixes issue raised by @garas

This commit is contained in:
Joe 2018-08-22 00:40:28 -04:00
parent af516eebb0
commit 1fca92fb4e

View file

@ -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);