diff --git a/module/VuFind/src/VuFind/ILS/Driver/Voyager.php b/module/VuFind/src/VuFind/ILS/Driver/Voyager.php index cc7992e3f0f8bf1f506a21d1f7c8a062bf9a7684..409095d5755cd250d992196b74e87f894891ad6e 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Voyager.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Voyager.php @@ -244,8 +244,10 @@ class Voyager extends AbstractBase $status = $statusArray[0]; $rank = $this->getStatusRanking($status); for ($x = 1; $x < count($statusArray); $x++) { - if ($this->getStatusRanking($statusArray[$x]) < $rank) { + $thisRank = $this->getStatusRanking($statusArray[$x]); + if ($thisRank < $rank) { $status = $statusArray[$x]; + $rank = $thisRank; } }