From 7573b3bbc276ca28926668258faf1cb3996d6982 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 Jun 2008 08:29:59 +0000 Subject: [PATCH] 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 --- gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 */ -- 2.30.2