diff --git a/inc/inc.Utils.php b/inc/inc.Utils.php index b33a24199..35c9df96d 100644 --- a/inc/inc.Utils.php +++ b/inc/inc.Utils.php @@ -1129,7 +1129,7 @@ class SeedDMS_FolderTree { /* {{{ */ $iter = new \SeedDMS\Core\RecursiveFolderIterator($folder); $iter2 = new RecursiveIteratorIterator($iter, RecursiveIteratorIterator::SELF_FIRST); foreach($iter2 as $ff) { - call_user_func($callback, $ff, $iter2->getDepth()); + call_user_func($callback, $ff, $iter2->getDepth()+1); // echo $ff->getID().': '.$ff->getFolderPathPlain().'-'.$ff->getName()."
"; } } /* }}} */