From e7a996e6447fbe49e064e79d064df456efd2526e Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 15 Apr 2008 11:58:31 +0000 Subject: [PATCH] Added check to fei management. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10465 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiManagement.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2