8000 Merge branch '4.4' into 5.1 · symfony/symfony@e05dc00 · GitHub
[go: up one dir, main page]

Skip to content

Commit e05dc00

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: [Ldap] Fix undefined variable $con.
2 parents 3372b3e + d6f27fa commit e05dc00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ public function applyOperations(string $dn, iterable $operations): void
151151
$operationsMapped[] = $modification->toArray();
152152
}
153153

154-
if (!@ldap_modify_batch($this->getConnectionResource(), $dn, $operationsMapped)) {
155-
throw new UpdateOperationException(sprintf('Error executing UpdateOperation on "%s": ', $dn).ldap_error($this->getConnectionResource()), ldap_errno($con));
154+
$con = $this->getConnectionResource();
155+
if (!@ldap_modify_batch($con, $dn, $operationsMapped)) {
156+
throw new UpdateOperationException(sprintf('Error executing UpdateOperation on "%s": ', $dn).ldap_error($con), ldap_errno($con));
156157
}
157158
}
158159

0 commit comments

Comments
 (0)
0