forked from uup-dump/api
Fix PHP warnings appearing when fileinfo database is empty
This commit is contained in:
parent
02444758f6
commit
7f859eb6df
@ -76,6 +76,13 @@ function uupListIds($search = null) {
|
|||||||
$builds[$tmp.$arch.$title.$uuid] = $temp;
|
$builds[$tmp.$arch.$title.$uuid] = $temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($buildAssoc)) {
|
||||||
|
return array(
|
||||||
|
'apiVersion' => uupApiVersion(),
|
||||||
|
'builds' => array(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
krsort($buildAssoc);
|
krsort($buildAssoc);
|
||||||
$buildsNew = array();
|
$buildsNew = array();
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '1.15.2';
|
return '1.15.3';
|
||||||
}
|
}
|
||||||
|
|
||||||
function uupApiPrintBrand() {
|
function uupApiPrintBrand() {
|
||||||
|
Loading…
Reference in New Issue
Block a user