summaryrefslogtreecommitdiff
path: root/app/Auth
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-26 21:16:19 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-26 21:16:19 -0500
commit3ba8e066328866d7446e1167fd35ecf2bdc4351e (patch)
tree295543e3f10f214cb02015a990fab5f30f5256a2 /app/Auth
parent20b60bc628a7c28cb7780e06073df68a821adc19 (diff)
Fix some Scrutinizer issues
Diffstat (limited to 'app/Auth')
-rw-r--r--app/Auth/Base.php2
-rw-r--r--app/Auth/Ldap.php2
2 files changed, 2 insertions, 2 deletions
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);
}