Code

Printer list was requested from ldap, but wasn't used anyway ..
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Nov 2006 06:28:53 +0000 (06:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Nov 2006 06:28:53 +0000 (06:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5255 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 5f8eb2c586cc48f9a50d2e789601f65901512c96..c4edb994ee2a294126b538d8a8cbd56a4b18b3d7 100644 (file)
@@ -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;
 }