From: hickert Date: Wed, 16 Apr 2008 12:01:48 +0000 (+0000) Subject: Fixed printer problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=da0d003d3a71e900fd122862f96bcc5160d29307;p=gosa.git Fixed printer problem -Selected users/groups were not shown sometimes. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10504 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc index bd5251061..d2b3af58c 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc @@ -122,12 +122,11 @@ class printgeneric extends plugin /* $this->members contains all members */ $this->member[$type]=array(); - if (isset($this->attrs[$attr]['count'])) { - unset($this->attrs[$attr]['count']); - } - if(isset($this->attrs[$attr])){ - foreach($this->attrs[$attr] as $mem){ + $ldap->cd($this->config->current['BASE']) ; + for($i = 0 ; $i < $this->attrs[$attr]['count']; $i++){ + + $mem = $this->attrs[$attr][$i]; if(preg_match("/Group/",$type)){ $ldap->search("(&(objectClass=posixGroup)(cn=".$mem."))",array("cn","description")); if($ldap->count()){