From 7ea785a2da84ad67ad6b664015a03a4a0cf596f3 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 Oct 2005 11:37:01 +0000 Subject: [PATCH] Removed php error: git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1508 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackage.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index dc22f0a0f..b65a2b55a 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -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(); } -- 2.30.2