Code

Added check to fei management.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Apr 2008 11:58:31 +0000 (11:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Apr 2008 11:58:31 +0000 (11:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10465 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiManagement.inc

index d0b78ff327df3fb170ab1a43c7ef9c33fe5c3281..bf8497fbe1452af72554d92ae51cf40ce98e3de4 100644 (file)
@@ -939,8 +939,8 @@ class faiManagement extends plugin
     $ret = array_flip($ret);
 
     /* Ensure that we have a valid release selected */
-    if(!in_array($this->fai_release,$ret)){
-     # $this->fai_release = $this->fai_base;
+    if(!isset($ret[$this->fai_release])){
+      $this->fai_release = $this->fai_base;
     }
 
     return ($ret);