[Ldap] Fix undefined variable $con.
This commit is contained in:
parent
55707fbcba
commit
15da31686a
|
@ -151,8 +151,9 @@ class EntryManager implements EntryManagerInterface
|
|||
$operationsMapped[] = $modification->toArray();
|
||||
}
|
||||
|
||||
if (!@ldap_modify_batch($this->getConnectionResource(), $dn, $operationsMapped)) {
|
||||
throw new UpdateOperationException(sprintf('Error executing UpdateOperation on "%s": "%s".', $dn, ldap_error($this->getConnectionResource())));
|
||||
$con = $this->getConnectionResource();
|
||||
if (!@ldap_modify_batch($con, $dn, $operationsMapped)) {
|
||||
throw new UpdateOperationException(sprintf('Error executing UpdateOperation on "%s": "%s".', $dn, ldap_error($con)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue