Code

Fixed unset
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Nov 2005 09:56:48 +0000 (09:56 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Nov 2005 09:56:48 +0000 (09:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1871 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPackage.inc

index 5bbfd54f615f7a33aeb2452174f8269c0f9aecb0..23fa9fbf34c721bc250adccc3513ca9b39885fcc 100644 (file)
@@ -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){