Fix simplexml calls

This commit is contained in:
Romain Neutron
2012-11-05 18:52:40 +01:00
parent 66c0e83ee7
commit da6f7a00c0
23 changed files with 56 additions and 66 deletions

View File

@@ -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;