Skip to content

Commit

Permalink
Fixes issue raised by @garas
Browse files Browse the repository at this point in the history
  • Loading branch information
joezidell-saleswarp committed Aug 22, 2018
1 parent af516ee commit 1fca92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeResponse.php
Expand Up @@ -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);
Expand Down

0 comments on commit 1fca92f

Please sign in to comment.