From: cajus Date: Tue, 8 Nov 2005 09:32:29 +0000 (+0000) Subject: Fixed unset of non existing attributes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=91853dc020c9ac118ef0ca630e2b8f7a7cbf5d2f;p=gosa.git Fixed unset of non existing attributes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1867 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){