From ecfaed571b2c38f4bcc2b6a0fa39fba15a5126ce Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 11 Nov 2011 10:04:45 -0500
Subject: [PATCH] - Apply fixes fom trunk up to r5414

---
 plugins/acl/acl.php |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index fe7d0d5..1448fb0 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -3,7 +3,7 @@
 /**
  * Folders Access Control Lists Management (RFC4314, RFC2086)
  *
- * @version 0.6.2
+ * @version 0.6.3
  * @author Aleksander Machniak <alec@alec.pl>
  *
  *
@@ -91,8 +91,11 @@
         $users  = array();
 
         if ($this->init_ldap()) {
-            $this->ldap->set_pagesize((int)$this->rc->config->get('autocomplete_max', 15));
-            $result = $this->ldap->search('*', $search);
+            $max  = (int) $this->rc->config->get('autocomplete_max', 15);
+            $mode = (int) $this->rc->config->get('addressbook_search_mode');
+
+            $this->ldap->set_pagesize($max);
+            $result = $this->ldap->search('*', $search, $mode);
 
             foreach ($result->records as $record) {
                 $user = $record['uid'];

--
Gitblit v1.9.1