From 5ff8d28d5b06cd7298b1a10b19a2d8b29992ef9c Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 15 Jan 2021 16:35:31 -0500 Subject: [PATCH] Fix problem with ILS driver capability checks, for PHP 8 compatibility. --- module/VuFind/src/VuFind/ILS/Connection.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/ILS/Connection.php b/module/VuFind/src/VuFind/ILS/Connection.php index 8035a8490cf..cba0a8e434d 100644 --- a/module/VuFind/src/VuFind/ILS/Connection.php +++ b/module/VuFind/src/VuFind/ILS/Connection.php @@ -938,8 +938,7 @@ class Connection implements TranslatorAwareInterface, LoggerAwareInterface // the driver class without wasting time initializing it; if NoILS // failover is enabled, we have to initialize the driver object now // to be sure we are checking capabilities on the appropriate class. - $driverToCheck = $this->hasNoILSFailover() - ? $this->getDriver() : $this->getDriverClass(); + $driverToCheck = $this->getDriver($this->hasNoILSFailover()); // First check that the function is callable: if (is_callable([$driverToCheck, $method])) { -- GitLab