Skip to content

Commit

Permalink
Fix error in items sorting when serial isssue number is null (#3301)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmorave2 authored and demiankatz committed Jan 9, 2024
1 parent 6c94e4a commit 42d26e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/KohaRest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,7 @@ protected function statusSortFunction($a, $b)
$result = $this->getSorter()->compare($a['location'], $b['location']);

if (0 === $result && $this->sortItemsBySerialIssue) {
$result = strnatcmp($a['number'], $b['number']);
$result = strnatcmp($a['number'] ?? '', $b['number'] ?? '');
}

if (0 === $result) {
Expand Down

0 comments on commit 42d26e9

Please sign in to comment.