Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/microweber/microweber into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Mar 15, 2022
2 parents 7065bf5 + 221f6bb commit 3351fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MicroweberPackages/Utils/System/Files.php
Expand Up @@ -270,7 +270,7 @@ public function get($params)
}
$allowed_sort = array('basename', 'filemtime', 'filesize');
if (in_array($params['sort_by'], $allowed_sort)) {
array_multisort(array_map($params['sort_by'], $arrayItems_f), SORT_NUMERIC, $ord, $arrayItems_f);
array_multisort(@array_map($params['sort_by'], $arrayItems_f), SORT_NUMERIC, $ord, $arrayItems_f);
}
}
}
Expand Down Expand Up @@ -1154,7 +1154,7 @@ function get_allowed_files_extensions_for_upload($fileTypes = 'images', $returnA
break;
case 'file':
case 'files':
$are_allowed .= ',doc,docx,pdf,json,rtf,txt,zip,gzip,rar,cad,psd,xlsx,csv,7z';
$are_allowed .= ',doc,docx,pdf,json,rtf,txt,zip,gzip,rar,cad,psd,xlsx,csv,7z';
break;
case 'documents':
case 'doc':
Expand Down

0 comments on commit 3351fcc

Please sign in to comment.