Skip to content

Commit

Permalink
API getVersion Fix -> Undefined variable: eTagMatches... (#2268)
Browse files Browse the repository at this point in the history
  • Loading branch information
ratmole authored and connortechnology committed Oct 23, 2018
1 parent 86b0e4e commit 18850d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/api/lib/Cake/Network/CakeResponse.php
Expand Up @@ -1168,6 +1168,9 @@ public function checkNotModified(CakeRequest $request) {
if ($modifiedSince) {
$timeMatches = strtotime($this->modified()) === strtotime($modifiedSince);
}
if (!isset($etagMatches, $timeMatches)) {
return false;
}
$checks = compact('etagMatches', 'timeMatches');
if (empty($checks)) {
return false;
Expand Down

0 comments on commit 18850d8

Please sign in to comment.