From 75e7195196fd941d62d502416285ca094650bfeb Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Mon, 20 May 2019 11:44:15 -0400 Subject: [PATCH] Suppress errors so custom handling can be triggered. --- module/VuFind/src/VuFind/ILS/Driver/Aleph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php index aed979204d0..1028780cc8a 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php @@ -567,7 +567,7 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface, $this->debug("url: $url response: $answer"); } $answer = str_replace('xmlns=', 'ns=', $answer); - $result = simplexml_load_string($answer); + $result = @simplexml_load_string($answer); if (!$result) { if ($this->debug_enabled) { $this->debug("XML is not valid, URL: $url"); -- GitLab