// Fixed potential warning on homepage #PSCFV-3678
This commit is contained in:
1 parent
1925df40fa
commit
81a1f214b1
1 file changed
+5
-5
@@ -537,11 +537,10 @@ class AdminHomeControllerCore extends AdminController
|
|||||||
file_put_contents('../config/xml/preactivation.xml', $content);
|
file_put_contents('../config/xml/preactivation.xml', $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$count = 0;
|
||||||
|
libxml_use_internal_errors(true);
|
||||||
// If preactivation xml file exists, we load it
|
// If preactivation xml file exists, we load it
|
||||||
if (file_exists('../config/xml/preactivation.xml'))
|
if (file_exists('../config/xml/preactivation.xml') && $preactivation = simplexml_load_file('../config/xml/preactivation.xml'))
|
||||||
{
|
|
||||||
$count = 0;
|
|
||||||
$preactivation = @simplexml_load_file('../config/xml/preactivation.xml');
|
|
||||||
foreach ($preactivation->partner as $partner)
|
foreach ($preactivation->partner as $partner)
|
||||||
{
|
{
|
||||||
// Cache the logo
|
// Cache the logo
|
||||||
@@ -580,7 +579,8 @@ class AdminHomeControllerCore extends AdminController
|
|||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
libxml_clear_errors();
|
||||||
|
|
||||||
if (!empty($return))
|
if (!empty($return))
|
||||||
$return .= '<br clear="left" />
|
$return .= '<br clear="left" />
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in new issue
Block a user