diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-26 21:16:19 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-26 21:16:19 -0500 |
commit | 3ba8e066328866d7446e1167fd35ecf2bdc4351e (patch) | |
tree | 295543e3f10f214cb02015a990fab5f30f5256a2 /app/Auth/Ldap.php | |
parent | 20b60bc628a7c28cb7780e06073df68a821adc19 (diff) |
Fix some Scrutinizer issues
Diffstat (limited to 'app/Auth/Ldap.php')
-rw-r--r-- | app/Auth/Ldap.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php index 4f20998f..5bb60275 100644 --- a/app/Auth/Ldap.php +++ b/app/Auth/Ldap.php @@ -104,7 +104,7 @@ class Ldap extends Base { $ldap = $this->connect(); - if ($this->bind($ldap, $username, $password)) { + if (is_resource($ldap) && $this->bind($ldap, $username, $password)) { return $this->search($ldap, $username, $password); } |