From 187ff4e59719cf7b695ce9190ed3967885f557bb Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 28 Oct 2011 16:19:22 -0400
Subject: [PATCH] Avoid errors

---
 program/include/rcube_ldap.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php
index e00a17c..facc735 100644
--- a/program/include/rcube_ldap.php
+++ b/program/include/rcube_ldap.php
@@ -713,7 +713,7 @@
         }
 
         // use VLV pseudo-search for autocompletion
-        if ($this->prop['vlv_search'] && $this->conn && join(',', $fields) == 'email,name')
+        if ($this->prop['vlv_search'] && $this->conn && join(',', (array)$fields) == 'email,name')
         {
             // add general filter to query
             if (!empty($this->prop['filter']) && empty($this->filter))

--
Gitblit v1.9.1