From: hickert Date: Tue, 15 Apr 2008 11:58:31 +0000 (+0000) Subject: Added check to fei management. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e7a996e6447fbe49e064e79d064df456efd2526e;p=gosa.git Added check to fei management. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10465 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 d0b78ff32..bf8497fbe 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -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);