From 59a6068246c4012955e3b2b49e44426eedcc923b Mon Sep 17 00:00:00 2001
From: Arthur Schiwon <blizzz@owncloud.com>
Date: Thu, 17 Jan 2013 13:46:32 +0100
Subject: [PATCH] fix undeclared variable

---
 apps/user_ldap/lib/connection.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index a22246c709..9eab692bef 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -351,6 +351,8 @@ class Connection {
 			if(!$this->config['ldapOverrideMainServer'] && !$this->getFromCache('overrideMainServer')) {
 				$this->doConnect($this->config['ldapHost'], $this->config['ldapPort']);
 				$bindStatus = $this->bind();
+			} else {
+				$bindStatus = false;
 			}
 
 			$error = null;
-- 
GitLab