mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Merge with 3.7
This commit is contained in:
@@ -1009,7 +1009,7 @@ class databox extends base
|
||||
|
||||
$thesaurus = $this->get_thesaurus();
|
||||
|
||||
if ($thesaurus && ($tmp = simplexml_load_string($thesaurus)) !== false)
|
||||
if ($thesaurus && false !== $tmp = simplexml_load_string($thesaurus))
|
||||
self::$_sxml_thesaurus[$sbas_id] = $tmp;
|
||||
else
|
||||
self::$_sxml_thesaurus[$sbas_id] = false;
|
||||
@@ -1174,7 +1174,7 @@ class databox extends base
|
||||
|
||||
$structure = $this->get_structure();
|
||||
|
||||
if ($structure && ($tmp = simplexml_load_string($structure)) !== false)
|
||||
if ($structure && false !== $tmp = simplexml_load_string($structure))
|
||||
$this->_sxml_structure = $tmp;
|
||||
else
|
||||
$this->_sxml_structure = false;
|
||||
|
Reference in New Issue
Block a user