PMCORE-618
This commit is contained in:
@@ -332,6 +332,7 @@ class AuditLog
|
||||
*/
|
||||
private function getFiles($path, $pattern = '', $dir = 'ASC')
|
||||
{
|
||||
try {
|
||||
$finder = new Finder();
|
||||
$finder->files()
|
||||
->in($path)
|
||||
@@ -347,6 +348,10 @@ class AuditLog
|
||||
}
|
||||
});
|
||||
return $files;
|
||||
} catch (Exception $e) {
|
||||
// Return array empty when the path does not exist
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user