Skip to content
Snippets Groups Projects
Commit ffb1de66 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 1ff92a24 2d810c68
No related branches found
No related tags found
1 merge request!75Fixed a Bug where Minism tried to load an invalid XML-String
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment