Fix error reporting of get.php, update packs metadata

This commit is contained in:
mkuba50
2019-01-25 20:29:53 +01:00
parent 71ee367367
commit c4fb38e6f5
4 changed files with 8 additions and 4 deletions

View File

@ -121,6 +121,10 @@ function uupGetFiles(
$files = uupGetOfflineFiles($info);
}
if(isset($files['error'])) {
return $files;
}
$baseless = preg_grep('/^baseless_|-baseless\....$/i', array_keys($files));
foreach($baseless as $val) {
if(isset($files[$val])) unset($files[$val]);