Skip to content

Commit

Permalink
Update MarcReaderTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored Jan 9, 2024
1 parent 4493589 commit c4932c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function getRawMarcData()
break;
}
}
if (!isset($this->fields[$preferredMarcField])) {
if (empty($this->fields[$preferredMarcField])) {
throw new \Exception('Missing MARC data in record ' . $this->getUniqueId());
}
return trim($this->fields[$preferredMarcField]);
Expand Down

0 comments on commit c4932c0

Please sign in to comment.