mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: return an array
This commit is contained in:
parent
696c7eb454
commit
86f3c8eb26
|
|
@ -83,11 +83,11 @@ function dol_dir_list($path, $types="all", $recursive=0, $filter="", $excludefil
|
|||
'loaddate' => $loaddate,
|
||||
'loadsize' => $loadsize
|
||||
);
|
||||
$file_list=$hookmanager->executeHooks('getDirList', $parameters);
|
||||
$ret=$hookmanager->executeHooks('getDirList', $parameters);
|
||||
|
||||
if (is_array($file_list))
|
||||
if (! empty($hookmanager->resArray))
|
||||
{
|
||||
return $file_list;
|
||||
return $hookmanager->resArray;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user