summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-02-29 11:53:52 +0000
committeralecpl <alec@alec.pl>2012-02-29 11:53:52 +0000
commit38dc510b2dba02dba5a60fbc00947aac4fd24aab (patch)
treef1fcdc5c715671a8dfcf986f274dab83043f0fee /program
parent7a32e9c7e82a884d58ec2774d0148e5075a4791c (diff)
- Fix warning when properties array is empty
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_ldap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php
index 5eab7dba0..d22dc6aab 100644
--- a/program/include/rcube_ldap.php
+++ b/program/include/rcube_ldap.php
@@ -63,7 +63,7 @@ class rcube_ldap extends rcube_addressbook
/**
* Object constructor
*
- * @param array LDAP connection properties
+ * @param array LDAP connection properties
* @param boolean Enables debug mode
* @param string Current user mail domain name
* @param integer User-ID
@@ -95,7 +95,7 @@ class rcube_ldap extends rcube_addressbook
foreach ($p['fieldmap'] as $rf => $lf)
$this->fieldmap[$rf] = $this->_attr_name(strtolower($lf));
}
- else {
+ else if (!empty($p)) {
// read deprecated *_field properties to remain backwards compatible
foreach ($p as $prop => $value)
if (preg_match('/^(.+)_field$/', $prop, $matches))