diff --git a/get.php b/get.php index d03bfc6..c6a3f59 100644 --- a/get.php +++ b/get.php @@ -209,6 +209,10 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac unset($filesTemp, $temp, $val, $num); } + if(empty($filesKeys)) { + return array('error' => 'NO_FILES'); + } + foreach($filesKeys as $val) { $filesNew[$val] = $files[$val]; } diff --git a/shared/main.php b/shared/main.php index fd69283..dfdb01b 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '0.7.0-beta'; + return '1.0.0'; } function uupApiPrintBrand() {