[Ldap] Fix undefined variable $con.

This commit is contained in:
Alexander M. Turek 2020-11-16 18:05:55 +01:00
parent 55707fbcba
commit 15da31686a
1 changed files with 3 additions and 2 deletions

View File

@ -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)));
}
}