From: hickert Date: Tue, 15 Apr 2008 07:34:42 +0000 (+0000) Subject: Updated fai management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=083c93274126935bf898e0cdc96bb9b9dee3f17a;p=gosa.git Updated fai management -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 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index 114ac36ec..2d6c5e66d 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -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); }