mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
config: if file is not there, don't throw an error
This commit is contained in:
parent
3cf976cd67
commit
7116568b4f
@ -466,7 +466,7 @@ class Config extends Singleton
|
||||
$result = array ();
|
||||
foreach ($backups as $filename) {
|
||||
// try to read backup info from xml
|
||||
$xmlNode = simplexml_load_file($filename, "SimpleXMLElement", LIBXML_NOERROR | LIBXML_ERR_NONE);
|
||||
$xmlNode = @simplexml_load_file($filename, "SimpleXMLElement", LIBXML_NOERROR | LIBXML_ERR_NONE);
|
||||
if (isset($xmlNode->revision)) {
|
||||
$result[$filename] = $this->toArray(null, $xmlNode->revision);
|
||||
$result[$filename]['version'] = $xmlNode->version->__toString();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user