Skip to content

Commit

Permalink
Refactor: Prevent to throw ModelNotFoundException error when non acti…
Browse files Browse the repository at this point in the history
…ve object is set for privacyPolicyObjType model
  • Loading branch information
Xavier committed Sep 5, 2024
1 parent 632c043 commit 7309cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Charcoal/CookieConsent/Model/Structure/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function getHref()
return $this->getUrl();
}
} catch (ModelNotFoundException $e) {
return '';
// do nothing
}

return null;
Expand Down

0 comments on commit 7309cf3

Please sign in to comment.