Skip to content

Commit

Permalink
ServiceTrait::getRevProxy(): fix the false value recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Mar 25, 2024
1 parent d4f84e4 commit 91e4920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/acdhOeaw/arche/lib/disserv/dissemination/ServiceTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

/**
Expand Down

0 comments on commit 91e4920

Please sign in to comment.