From 3ba8e066328866d7446e1167fd35ecf2bdc4351e Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 26 Nov 2014 21:16:19 -0500 Subject: Fix some Scrutinizer issues --- app/Auth/Base.php | 2 +- app/Auth/Ldap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Auth') diff --git a/app/Auth/Base.php b/app/Auth/Base.php index 3abd47f2..9633af4f 100644 --- a/app/Auth/Base.php +++ b/app/Auth/Base.php @@ -29,7 +29,7 @@ abstract class Base * Container instance * * @access protected - * @var Pimple\Container + * @var \Pimple\Container */ protected $container; 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); } -- cgit v1.2.3