Skip to content

Commit

Permalink
Update IIIFManifest.php (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey authored Aug 8, 2024
1 parent 54958b3 commit ea87476
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 ea87476

Please sign in to comment.