From b56c80209b12db9ef682ed985f8f54f117f83908 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Jan 2006 08:08:33 +0000 Subject: [PATCH] Added sorting for FAI classes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2388 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_workstationStartup.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 7748e2951..8f9df6494 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -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 = "  \"\""; $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; -- 2.30.2