Fix #23120 dol_syslog argument bug.
This commit is contained in:
parent
585862750f
commit
81bf68471d
@ -1058,12 +1058,12 @@ class Ldap
|
||||
if (is_array($attributeArray)) {
|
||||
// Return list with required fields
|
||||
$attributeArray = array_values($attributeArray); // This is to force to have index reordered from 0 (not make ldap_search fails)
|
||||
dol_syslog(get_class($this)."::getRecords connection=".$this->connection." userDn=".$userDn." filter=".$filter." attributeArray=(".join(',', $attributeArray).")");
|
||||
dol_syslog(get_class($this)."::getRecords connection=".$this->connectedServer.":".$this->serverPort." userDn=".$userDn." filter=".$filter." attributeArray=(".join(',', $attributeArray).")");
|
||||
//var_dump($attributeArray);
|
||||
$this->result = @ldap_search($this->connection, $userDn, $filter, $attributeArray);
|
||||
} else {
|
||||
// Return list with fields selected by default
|
||||
dol_syslog(get_class($this)."::getRecords connection=".$this->connection." userDn=".$userDn." filter=".$filter);
|
||||
dol_syslog(get_class($this)."::getRecords connection=".$this->connectedServer.":".$this->serverPort." userDn=".$userDn." filter=".$filter);
|
||||
$this->result = @ldap_search($this->connection, $userDn, $filter);
|
||||
}
|
||||
if (!$this->result) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user