Code

Removed php error:
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Oct 2005 11:37:01 +0000 (11:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Oct 2005 11:37:01 +0000 (11:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1508 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPackage.inc

index dc22f0a0fdbab5db7fa7f644e93b530140894608..b65a2b55a0443ad1464f0bcc2f6ce603a5e89aab 100644 (file)
@@ -65,10 +65,14 @@ class faiPackage extends plugin
       $this->disableRepository=true;
     }
 
-    unset($this->attrs['FAIpackage']['count']);
-    foreach($this->attrs['FAIpackage'] as $pkg){
-      $this->usedPackages[$pkg] = $pkg;
-    }
+    if(isset($this->attrs['FAIpackage'])){
+      unset($this->attrs['FAIpackage']['count']);
+      foreach($this->attrs['FAIpackage'] as $pkg){
+        $this->usedPackages[$pkg] = $pkg;
+      }
+    }else{
+      $this->usedPackages = array();;
+    }  
     $this->confDir = CONFIG_DIR."/fai/";
     $this->FAIpackage = array();
   }