Some unnecessary fixes

This commit is contained in:
mkuba50 committed 2018-08-10 23:55:45 +02:00
1 parent 7f859eb6df
commit 212b54a98e
3 files changed
+34 -16

No files matched your search

+8 -3
View File
@@ -68,9 +68,14 @@ function uupListIds($search = null) {
);
$tmp = explode('.', $build);
$tmp[0] = str_pad($tmp[0], 10, '0', STR_PAD_LEFT);
$tmp[1] = str_pad($tmp[1], 10, '0', STR_PAD_LEFT);
$tmp = $tmp[0].$tmp[1];
if(isset($tmp[1])) {
$tmp[0] = str_pad($tmp[0], 10, '0', STR_PAD_LEFT);
$tmp[1] = str_pad($tmp[1], 10, '0', STR_PAD_LEFT);
$tmp = $tmp[0].$tmp[1];
} else {
consoleLogger($uuid.'.json appears to be broken and may be useless.');
$tmp = 0;
}
$buildAssoc[$tmp][] = $arch.$title.$uuid;
$builds[$tmp.$arch.$title.$uuid] = $temp;