Skip to content
Snippets Groups Projects
Commit 75e71951 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Suppress errors so custom handling can be triggered.

parent de68f93e
Branches
Tags
No related merge requests found
...@@ -567,7 +567,7 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface, ...@@ -567,7 +567,7 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface,
$this->debug("url: $url response: $answer"); $this->debug("url: $url response: $answer");
} }
$answer = str_replace('xmlns=', 'ns=', $answer); $answer = str_replace('xmlns=', 'ns=', $answer);
$result = simplexml_load_string($answer); $result = @simplexml_load_string($answer);
if (!$result) { if (!$result) {
if ($this->debug_enabled) { if ($this->debug_enabled) {
$this->debug("XML is not valid, URL: $url"); $this->debug("XML is not valid, URL: $url");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment