Handle XML load error

This commit is contained in:
mkuba50 committed 2018-11-16 21:29:29 +01:00
1 parent bb3878d78e
commit a213313062
2 files changed
+7 -2

No files matched your search

+6 -1
View File
@@ -216,7 +216,12 @@ function uupGetFiles(
}
consoleLogger('Parsing information...');
$xmlOut = simplexml_load_string($out);
$xmlOut = @simplexml_load_string($out);
if($xmlOut === false) {
unlink('cache/'.$cacheHash.'.json.gz');
return array('error' => 'ERROR');
}
$xmlBody = $xmlOut->children('s', true)->Body->children();
if(!isset($xmlBody->GetExtendedUpdateInfo2Response)) {
+1 -1
View File
@@ -16,7 +16,7 @@ limitations under the License.
*/
function uupApiVersion() {
return '1.16.0';
return '1.16.1';
}
require_once dirname(__FILE__).'/auths.php';