Skip to content

Commit

Permalink
Merge pull request #81 from JarvusInnovations/develop
Browse files Browse the repository at this point in the history
Release: gatekeeper v2.2.5
  • Loading branch information
themightychris authored Apr 25, 2020
2 parents a68b9fe + 1624393 commit ea71cbc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion php-classes/Gatekeeper/Endpoints/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ public static function validatePath(RecordValidator $validator, Endpoint $Endpoi
return;
}

if (!$Endpoint->isFieldDirty('Path')) {
return;
}

$duplicateConditions = [
'Path' => $Endpoint->Path
];
Expand Down Expand Up @@ -349,7 +353,7 @@ public function applyRewrites($url)
$cacheKey = "endpoints/$this->ID/rewrites";

// get ordered list of rewrites
if (false == ($rewriteIDs = Cache::fetch($cacheKey))) {
if (false === ($rewriteIDs = Cache::fetch($cacheKey))) {
$rewriteIDs = array_map(function($Rewrite) {
return $Rewrite->ID;
}, $this->Rewrites);
Expand Down

0 comments on commit ea71cbc

Please sign in to comment.