Skip to content

Commit

Permalink
Update IIIFManifest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey authored Aug 7, 2024
1 parent 54958b3 commit 9e61332
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,8 @@ public function submitOptionsForm(&$form, FormStateInterface $form_state) {
protected function getStructuredTextTerm() : ?TermInterface {
if (!$this->structuredTextTermMemoized) {
$this->structuredTextTermMemoized = TRUE;
$this->structuredTextTerm = $this->utils->getTermForUri($this->options['structured_text_term_uri']);
$uri = $this->options['structured_text_term_uri'] ?? NULL;
$this->structuredTextTerm = $uri ? $this->utils->getTermForUri($uri) : NULL;
}

return $this->structuredTextTerm;
Expand Down

0 comments on commit 9e61332

Please sign in to comment.