Code

Updated workstation startup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 18 Apr 2008 08:08:24 +0000 (08:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 18 Apr 2008 08:08:24 +0000 (08:08 +0000)
-Added sorting for kernel lists
-Removed obsolete check

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10548 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc

index e863ec7f59772cedd2fb3fd94171199a5b9b6590..4b3164c40fb27f7d8860505b0f7930d793f33135 100644 (file)
@@ -880,7 +880,7 @@ class workstartup extends plugin
       }
     }
 
-    if (($this->attrs['gotoBootKernel'] == "default-inherited") || ($this->attrs['gotoBootKernel'] == "%default%")){
+    if ($this->attrs['gotoBootKernel'] == "default-inherited"){
       $this->attrs['gotoBootKernel']= array();
     }
 
@@ -1207,6 +1207,7 @@ class workstartup extends plugin
         $this->cache['KERNELS'][$release][$kernel]=$kernel;
       }
     }
+    ksort($this->cache['KERNELS'][$release]);
   }