Code

Fixed unset of non existing attributes
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Nov 2005 09:32:29 +0000 (09:32 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Nov 2005 09:32:29 +0000 (09:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1867 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc

index 046b4e2a9c088385d6e3a113e6694d13c68bd420..7598b4dbe09803982af38fc04695ea59832e30a5 100644 (file)
@@ -117,7 +117,9 @@ class printgeneric extends plugin
       /* $this->members contains all members */
       $this->member[$type]=array();
 
-      unset($this->attrs[$attr]['count']);
+      if (isset($this->attrs[$attr]['count'])) {
+        unset($this->attrs[$attr]['count']);
+      }
 
       if(isset($this->attrs[$attr])){
         foreach($this->attrs[$attr] as $mem){