added it_get_trash_root

This commit is contained in:
Peter Papp
2021-03-01 16:59:57 +01:00
parent d8b279479a
commit 2007279a69
4 changed files with 99 additions and 19 deletions

View File

@@ -418,11 +418,11 @@ function appeared_once($arr)
* @param $folders
* @return array
*/
function filter_folders_ids($folders, $by_column = 'unique_id')
function filter_folders_ids($folders, $by_column = 'id')
{
$folder_unique_ids = recursiveFind($folders->toArray(), $by_column);
$folder_ids = recursiveFind($folders->toArray(), $by_column);
return appeared_once($folder_unique_ids);
return appeared_once($folder_ids);
}
/**