forked from uup-dump/api
		
	Fix PHP warnings appearing when fileinfo database is empty
This commit is contained in:
		| @@ -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(); | ||||
|  | ||||
|   | ||||
| @@ -16,7 +16,7 @@ limitations under the License. | ||||
| */ | ||||
|  | ||||
| function uupApiVersion() { | ||||
|     return '1.15.2'; | ||||
|     return '1.15.3'; | ||||
| } | ||||
|  | ||||
| function uupApiPrintBrand() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user