Skip to content

Commit

Permalink
Extra isset check so we don't try to rewrite urls on empty results
Browse files Browse the repository at this point in the history
  • Loading branch information
dannylamb committed Nov 9, 2020
1 parent 77cfc42 commit 28eae07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gemini/src/UrlMapper/UrlMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 28eae07

Please sign in to comment.