mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Fix tests
This commit is contained in:
@@ -965,10 +965,14 @@ class databox extends base
|
||||
|
||||
$thesaurus = $this->get_thesaurus();
|
||||
|
||||
if ($thesaurus && ($tmp = DomDocument::loadXML($thesaurus)) !== false)
|
||||
$dom = new DOMDocument();
|
||||
|
||||
if ($thesaurus && false !== $tmp = $dom->loadXML($thesaurus)) {
|
||||
self::$_dom_thesaurus[$sbas_id] = $tmp;
|
||||
else
|
||||
} else {
|
||||
self::$_dom_thesaurus[$sbas_id] = false;
|
||||
unset($dom);
|
||||
}
|
||||
|
||||
return self::$_dom_thesaurus[$sbas_id];
|
||||
}
|
||||
|
Reference in New Issue
Block a user