[svn r21518] FS#306 - Fixing some incorrect calls of the function sort().

skala
Ivan Tcholakov 16 years ago
parent ad7f604358
commit 1eb4931462
  1. 8
      main/inc/lib/document.lib.php

@ -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
?>
?>

Loading…
Cancel
Save