mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge with 3.7
This commit is contained in:
@@ -35,8 +35,8 @@ class queries
|
||||
}
|
||||
|
||||
$cssTopics = '';
|
||||
if ($xmlTopics && ($sxTopics = simplexml_load_file($xmlTopics))) {
|
||||
$cssTopics = (string) ($sxTopics->display->css);
|
||||
if ($xmlTopics && false !== $sxTopics = simplexml_load_file($xmlTopics)) {
|
||||
$cssTopics = (string) $sxTopics->display->css;
|
||||
}
|
||||
|
||||
$out .= '<style type="text/css">
|
||||
@@ -96,7 +96,7 @@ class queries
|
||||
|
||||
$jsTopics = 'null';
|
||||
$maxdepth = 0;
|
||||
if (($sxTopics = simplexml_load_file($xmlTopics))) {
|
||||
if (false !== $sxTopics = simplexml_load_file($xmlTopics)) {
|
||||
$jsTopics = self::topicsAsJS($sxTopics->topics, 0, $maxdepth);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user