From 28eae077d7055368d41bfcf4c4ca37d215107b0e Mon Sep 17 00:00:00 2001 From: dannylamb Date: Mon, 9 Nov 2020 20:23:58 +0000 Subject: [PATCH] Extra isset check so we don't try to rewrite urls on empty results --- Gemini/src/UrlMapper/UrlMapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemini/src/UrlMapper/UrlMapper.php b/Gemini/src/UrlMapper/UrlMapper.php index 39b8680b..c71614a9 100644 --- a/Gemini/src/UrlMapper/UrlMapper.php +++ b/Gemini/src/UrlMapper/UrlMapper.php @@ -54,11 +54,11 @@ public function getUrls($uuid) ['uuid' => $uuid] ); - if (!empty($this->drupalDomain)) { + if (!empty($this->drupalDomain) && isset($result['drupal'])) { $result['drupal'] = $this->replaceDomain($result['drupal'], $this->drupalDomain); } - if (!empty($this->fedoraDomain)) { + if (!empty($this->fedoraDomain) && isset($result['fedora'])) { $result['fedora'] = $this->replaceDomain($result['fedora'], $this->fedoraDomain); }