Add a few more validity checks

This commit is contained in:
whatever127
2019-09-14 17:26:57 +02:00
parent 39353cdb51
commit d628c2fe69
5 changed files with 21 additions and 2 deletions

View File

@ -24,6 +24,10 @@ function uupListEditions($lang = 'en-us', $updateId = 0) {
$info = uupUpdateInfo($updateId);
}
if(!$lang) {
return array('error' => 'UNSUPPORTED_LANG');
}
if(isset($info['info'])) $info = $info['info'];
if(isset($info['build'])) {