Skip to content

Commit

Permalink
Fix ExtID obtaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 16, 2023
1 parent c1c81de commit 3b2c628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbraFlexi/RO.php
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,7 @@ public function getExternalID($want = null)
$ids = $this->getExternalIDs();
if (is_null($want)) {
if (!empty($ids)) {
$extid = is_array($ids->value) ? current($ids->value) : $ids;
$extid = is_object($ids) ? (is_array($ids->value) ? current($ids->value) : $ids) : current($ids) ;
}
} else {
if (!is_null($ids) && is_array($ids->value)) {
Expand Down

0 comments on commit 3b2c628

Please sign in to comment.