This commit is contained in:
Shish 2020-06-24 17:02:24 +01:00
parent bd9808081e
commit b893da927f
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ function list_files(string $base, string $_sub_dir=""): array
$files = [];
$dir = opendir("$base/$_sub_dir");
if($dir===false) {
if ($dir===false) {
throw new SCoreException("Unable to open directory $base/$_sub_dir");
}
try {

View file

@ -29,7 +29,7 @@ class ArchiveFileHandler extends DataHandlerExtension
$cmd = str_replace('%f', $event->tmpname, $cmd);
$cmd = str_replace('%d', $tmpdir, $cmd);
exec($cmd);
if(file_exists($tmpdir)) {
if (file_exists($tmpdir)) {
try {
$results = add_dir($tmpdir);
if (count($results) > 0) {