10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9413e0 commit 21fb399Copy full SHA for 21fb399
src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php
@@ -37,8 +37,7 @@ public function __destruct()
37
{
38
$con = $this->connection->getResource();
39
$this->connection = null;
40
-
41
- if (\in_array($this->search, array(null, false), true)) {
+ if (null === $this->search || false === $this->search) {
42
return;
43
}
44
@@ -69,7 +68,7 @@ public function execute()
69
68
QueryInterface::SCOPE_SUB => 'ldap_search',
70
);
71
72
- if (!\array_key_exists($this->options['scope'], $funcMap)) {
+ if (!isset($funcMap[$this->options['scope']])) {
73
throw new LdapException(sprintf('Could not search in scope "%s".', $this->options['scope']));
74
75
0 commit comments