From 91e4920578e993f2642bf4800da9e45bf6b5e165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=BB=C3=B3=C5=82tak?= Date: Mon, 25 Mar 2024 16:42:31 +0100 Subject: [PATCH] ServiceTrait::getRevProxy(): fix the false value recognition --- src/acdhOeaw/arche/lib/disserv/dissemination/ServiceTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/acdhOeaw/arche/lib/disserv/dissemination/ServiceTrait.php b/src/acdhOeaw/arche/lib/disserv/dissemination/ServiceTrait.php index bb5d85b..99da478 100644 --- a/src/acdhOeaw/arche/lib/disserv/dissemination/ServiceTrait.php +++ b/src/acdhOeaw/arche/lib/disserv/dissemination/ServiceTrait.php @@ -245,8 +245,8 @@ public function getLocation(): string { */ public function getRevProxy(): bool { $meta = $this->getMetadata(); - $value = $meta->getObject(new PT($this->getRepo()->getSchema()->dissService->revProxy))?->getValue() ?? false; - return (bool) $value; + $value = $meta->getObject(new PT($this->getRepo()->getSchema()->dissService->revProxy))?->getValue() ?? 'false'; + return $value === 'true'; } /**