From: hickert Date: Thu, 30 Nov 2006 06:28:53 +0000 (+0000) Subject: Printer list was requested from ldap, but wasn't used anyway .. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=87f2ccb4cc4555e23e588e88034eeafd6ab55a64;p=gosa.git Printer list was requested from ldap, but wasn't used anyway .. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5255 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 5f8eb2c58..c4edb994e 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1263,6 +1263,9 @@ function get_printer_list($cups_server) } else { $ldap->search('(objectClass=gotoPrinter)', array('cn')); } + while($attrs = $ldap->fetch()){ + $res[$attrs['cn'][0]] = $attrs['cn'][0]; + } return $res; }