Fix some Scrutinizer issues

This commit is contained in:
Frédéric Guillot
2014-11-26 21:16:19 -05:00
parent 20b60bc628
commit 3ba8e06632
8 changed files with 16 additions and 16 deletions

View File

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