Code

Fixed undefined index error, if the configured release is no longer available.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Jun 2008 08:29:59 +0000 (08:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Jun 2008 08:29:59 +0000 (08:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11389 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc

index f493543470717be53cc9ec4b2a44844430847bf6..2b76d0340e61a885c472d5b11a7ea61ed2be7aea 100644 (file)
@@ -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  */