Skip to content
Permalink
Browse files

Fixes issue raised by @garas

  • Loading branch information...
joezidell-saleswarp committed Aug 22, 2018
1 parent af516ee commit 1fca92fb4e5a9050e5c8ff135c7a49381b3c92b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Network/CakeResponse.php
@@ -1170,7 +1170,7 @@ public function checkNotModified(CakeRequest $request) {
$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);

0 comments on commit 1fca92f

Please sign in to comment.
You can’t perform that action at this time.