From: hickert Date: Thu, 6 Oct 2005 11:37:01 +0000 (+0000) Subject: Removed php error: X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7ea785a2da84ad67ad6b664015a03a4a0cf596f3;p=gosa.git Removed php error: git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1508 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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(); }