From 7309cf34c26485c1f3eaef373305f4e9f364d3f3 Mon Sep 17 00:00:00 2001 From: Xavier Date: Thu, 5 Sep 2024 14:02:05 -0400 Subject: [PATCH] Refactor: Prevent to throw ModelNotFoundException error when non active object is set for privacyPolicyObjType model --- src/Charcoal/CookieConsent/Model/Structure/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Charcoal/CookieConsent/Model/Structure/Link.php b/src/Charcoal/CookieConsent/Model/Structure/Link.php index 32aaaec..4dbce0a 100644 --- a/src/Charcoal/CookieConsent/Model/Structure/Link.php +++ b/src/Charcoal/CookieConsent/Model/Structure/Link.php @@ -150,7 +150,7 @@ public function getHref() return $this->getUrl(); } } catch (ModelNotFoundException $e) { - return ''; + // do nothing } return null;