From 7f859eb6dffa8626d37217b28634e213c9906a3d Mon Sep 17 00:00:00 2001 From: mkuba50 Date: Thu, 19 Jul 2018 01:27:40 +0200 Subject: [PATCH] Fix PHP warnings appearing when fileinfo database is empty --- listid.php | 7 +++++++ shared/main.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/listid.php b/listid.php index 7e1aead..780cc13 100644 --- a/listid.php +++ b/listid.php @@ -76,6 +76,13 @@ function uupListIds($search = null) { $builds[$tmp.$arch.$title.$uuid] = $temp; } + if(empty($buildAssoc)) { + return array( + 'apiVersion' => uupApiVersion(), + 'builds' => array(), + ); + } + krsort($buildAssoc); $buildsNew = array(); diff --git a/shared/main.php b/shared/main.php index 03c6022..08dc06b 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.15.2'; + return '1.15.3'; } function uupApiPrintBrand() {