Code

Added sorting for FAI classes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Jan 2006 08:08:33 +0000 (08:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Jan 2006 08:08:33 +0000 (08:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2388 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationStartup.inc

index 7748e2951745af000a9e613fb89eab9bd9123c48..8f9df64942c87a179a9ac0d49a2e227187c312f6 100644 (file)
@@ -153,6 +153,9 @@ class workstartup extends plugin
         $this->FAIclasses[$attr['cn'][0]]=$attr['cn'][0];
       }
     }
+    if(is_array($this->FAIclasses)){
+      natcasesort($this->FAIclasses);
+    }
 
     $this->FAIclassInfo = $tmp2;
 
@@ -387,6 +390,10 @@ class workstartup extends plugin
     $str_empty  = " &nbsp;<img src='images/empty.png' alt=\"\" width='7'>"; 
 
     $i = 1;
+    if(is_array($this->FAIclass)){
+      natcasesort($this->FAIclass);
+    }
+
     foreach($this->FAIclass as $class){
       if($i==1){
         $str = $str_empty.$str_down.$str_remove;