From: hickert Date: Fri, 20 Jun 2008 08:29:59 +0000 (+0000) Subject: Fixed undefined index error, if the configured release is no longer available. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7573b3bbc276ca28926668258faf1cb3996d6982;p=gosa.git Fixed undefined index error, if the configured release is no longer available. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11389 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc b/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc index f49354347..2b76d0340 100644 --- a/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc +++ b/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc @@ -384,7 +384,12 @@ class faiSummaryTab extends plugin{ function resolveObject($class) { $ldap = $this->config->get_ldap_link(); - $dn = $this->Releases [$this->Release]; + if(isset($this->Releases[$this->Release])){ + $dn = $this->Releases[$this->Release]; + }else{ + return(FALSE); + } + $resolvedClasses = FAI::get_all_objects_for_given_base($dn,"(&(objectClass=FAIclass)(cn=".$class."))"); /* Try to fetch all types of fai objects with the given cn */