From 1fca92fb4e5a9050e5c8ff135c7a49381b3c92b8 Mon Sep 17 00:00:00 2001 From: Joe <joe.zidell@saleswarp.com> Date: Wed, 22 Aug 2018 00:40:28 -0400 Subject: [PATCH] Fixes issue raised by @garas --- lib/Cake/Network/CakeResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index 2b47f09b9..45459d84b 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -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);