mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 03:23:19 +00:00
Fix simplexml calls
This commit is contained in:
@@ -111,7 +111,7 @@ function giveMeBases($usr = null)
|
||||
$collInscript = $baseInscript;
|
||||
$defined = false;
|
||||
$cguSpec = false;
|
||||
if ($xml = simplexml_load_string($collection->get_prefs())) {
|
||||
if (false !== $xml = simplexml_load_string($collection->get_prefs())) {
|
||||
$defined = true;
|
||||
foreach ($xml->xpath('/baseprefs/caninscript') as $caninscript) {
|
||||
$tmp = (string) $caninscript;
|
||||
|
Reference in New Issue
Block a user