Skip to content

Commit 5cdf1ad

Browse files
committed
fixed work with default ext id
1 parent 3002377 commit 5cdf1ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbraFlexi/RO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,7 @@ public function getExternalID($want = null) {
20872087
$ids = $this->getExternalIDs();
20882088
if (is_null($want)) {
20892089
if (!empty($ids)) {
2090-
$extid = current($ids);
2090+
$extid = is_array($ids) ? current($ids) : $ids;
20912091
}
20922092
} else {
20932093
if (!is_null($ids) && is_array($ids)) {

0 commit comments

Comments
 (0)