diff options
Diffstat (limited to 'lib/private/updater.php')
-rw-r--r-- | lib/private/updater.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php index 5846a6a655a..266cf9cc89f 100644 --- a/lib/private/updater.php +++ b/lib/private/updater.php @@ -104,15 +104,16 @@ class Updater extends BasicEmitter { $tmp = array(); $xml = $this->httpHelper->getUrlContent($url); - if ($xml !== false) { + if ($xml) { $loadEntities = libxml_disable_entity_loader(true); $data = @simplexml_load_string($xml); libxml_disable_entity_loader($loadEntities); - - $tmp['version'] = $data->version; - $tmp['versionstring'] = $data->versionstring; - $tmp['url'] = $data->url; - $tmp['web'] = $data->web; + if ($data !== false) { + $tmp['version'] = $data->version; + $tmp['versionstring'] = $data->versionstring; + $tmp['url'] = $data->url; + $tmp['web'] = $data->web; + } } else { $data = array(); } |