Fix PHP warnings appearing when fileinfo database is empty

This commit is contained in:
mkuba50 2018-07-19 01:27:40 +02:00
parent 02444758f6
commit 7f859eb6df
2 changed files with 8 additions and 1 deletions

View File

@ -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();

View File

@ -16,7 +16,7 @@ limitations under the License.
*/
function uupApiVersion() {
return '1.15.2';
return '1.15.3';
}
function uupApiPrintBrand() {