From 91853dc020c9ac118ef0ca630e2b8f7a7cbf5d2f Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 8 Nov 2005 09:32:29 +0000 Subject: [PATCH] Fixed unset of non existing attributes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1867 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 046b4e2a9..7598b4dbe 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -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){ -- 2.30.2