Some unnecessary fixes

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

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;