Commit e7b92405 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch 'Bugfix' into 'master'

Fixed a Bug where Minism tried to load an invalid XML-String



See merge request !75
parents 37fbc821 a26dd759
...@@ -14,7 +14,11 @@ class Minisucher extends Searchengine ...@@ -14,7 +14,11 @@ class Minisucher extends Searchengine
public function loadResults ($content) public function loadResults ($content)
{ {
$content = simplexml_load_string($content); try {
$content = simplexml_load_string($content);
} catch (\Exception $e) {
return;
}
if(!$content) if(!$content)
{ {
return; return;
......
Markdown is supported
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