Code

Updated fai management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Apr 2008 07:34:42 +0000 (07:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Apr 2008 07:34:42 +0000 (07:34 +0000)
-Ensure that we always have a valid release selected

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

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

index 114ac36ecfffd24cef8d70bb771d5f94e5ca05f2..2d6c5e66d148d47421af5ea5d49a5122d02f390b 100644 (file)
@@ -938,6 +938,11 @@ class faiManagement extends plugin
     ksort($ret);
     $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;
+    }
+
     return ($ret);
   }