From 549cdb7b03510fb6875ab2aeb0c36dc85d83a7f5 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 8 Nov 2005 09:56:48 +0000 Subject: [PATCH] Fixed unset git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1871 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackage.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index 5bbfd54f6..23fa9fbf3 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -75,7 +75,9 @@ class faiPackage extends plugin $this->usedPackages = array(); } - unset($this->attrs['FAIdebianSection']['count']); + if ($this->attrs['FAIdebianSection']['count']){ + unset($this->attrs['FAIdebianSection']['count']); + } if((isset($this->attrs['FAIdebianSection']))&&(is_array($this->attrs['FAIdebianSection']))){ $this->FAIdebianSection = array(); foreach($this->attrs['FAIdebianSection'] as $sec){ -- 2.30.2