diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php index ef47daaaebb2c55fcb4724580c69e69c5547b8ee..1ba541dd7dc45839ee9338daacacd7e8edb8469a 100644 --- a/lib/Net/LDAP3.php +++ b/lib/Net/LDAP3.php @@ -1831,7 +1831,7 @@ class Net_LDAP3 $val = self::quote_string($val); $val_filter[] = "(" . $field . $operator . $prefix . $val . $suffix . ")"; } - $filter .= "(|" . implode($val_filter, '') . ")"; + $filter .= "(|" . implode($val_filter) . ")"; } else { $value = self::quote_string($value); @@ -2373,9 +2373,9 @@ class Net_LDAP3 } else { $old_parent_dn_components = ldap_explode_dn($olddn, 0); - unset($old_parent_dn_components["count"]); + unset($old_parent_dn_components['count']); $old_rdn = array_shift($old_parent_dn_components); - $old_parent_dn = implode(",", $old_parent_dn_components); + $old_parent_dn = implode(',', $old_parent_dn_components); $subject_dn = $newrdn . ',' . $old_parent_dn; } @@ -2442,10 +2442,9 @@ class Net_LDAP3 protected function parse_aclrights(&$attributes, $attribute_value) { - $components = explode(':', $attribute_value); - $_acl_target = array_shift($components); - $_acl_value = trim(implode(':', $components)); - + $components = explode(':', $attribute_value); + $_acl_target = array_shift($components); + $_acl_value = trim(implode(':', $components)); $_acl_components = explode(';', $_acl_target); switch ($_acl_components[1]) {