10000 revert · symfony/symfony@21fb399 · GitHub
[go: up one dir, main page]

Skip to content

Commit 21fb399

Browse files
authored
revert
1 parent f9413e0 commit 21fb399

File tree

1 file changed

+2
-3
lines changed
  • src/Symfony/Component/Ldap/Adapter/ExtLdap

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public function __destruct()
3737
{
3838
$con = $this->connection->getResource();
3939
$this->connection = null;
40-
41-
if (\in_array($this->search, array(null, false), true)) {
40+
if (null === $this->search || false === $this->search) {
4241
return;
4342
}
4443

@@ -69,7 +68,7 @@ public function execute()
6968
QueryInterface::SCOPE_SUB => 'ldap_search',
7069
);
7170

72-
if (!\array_key_exists($this->options['scope'], $funcMap)) {
71+
if (!isset($funcMap[$this->options['scope']])) {
7372
throw new LdapException(sprintf('Could not search in scope "%s".', $this->options['scope']));
7473
}
7574

0 commit comments

Comments
 (0)
0