|
|
|
@ -603,7 +603,7 @@ class DocumentManager |
|
|
|
|
{ |
|
|
|
|
$document_folders[] = $row['path']; |
|
|
|
|
} |
|
|
|
|
sort($document_folders, SORT_ASC); |
|
|
|
|
sort($document_folders); |
|
|
|
|
//return results |
|
|
|
|
return $document_folders; |
|
|
|
|
} |
|
|
|
@ -661,13 +661,13 @@ class DocumentManager |
|
|
|
|
if (is_array($visiblefolders) && is_array($invisiblefolders)) |
|
|
|
|
{ |
|
|
|
|
$document_folders = array_diff($visiblefolders, $invisiblefolders); |
|
|
|
|
sort($document_folders, SORT_ASC); |
|
|
|
|
sort($document_folders); |
|
|
|
|
return $document_folders; |
|
|
|
|
} |
|
|
|
|
//only visible folders found |
|
|
|
|
elseif (is_array($visiblefolders)) |
|
|
|
|
{ |
|
|
|
|
sort($visiblefolders, SORT_ASC); |
|
|
|
|
sort($visiblefolders); |
|
|
|
|
return $visiblefolders; |
|
|
|
|
} |
|
|
|
|
//no visible folders found |
|
|
|
@ -1072,4 +1072,4 @@ class DocumentManager |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//end class DocumentManager |
|
|
|
|
?> |
|
|
|
|
?> |
|
|
|
|