summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-12-14 23:04:42 +0100
committerBart Visscher <bartv@thisnet.nl>2012-12-15 00:43:46 +0100
commitf39454ed12018402f38a8f6bf99fc94d676a0a3a (patch)
tree096e5a5263809359693517a6f90b0d433f6fcd61 /apps/user_ldap
parent8256650da881214e652353c9b79a5ba7964965e5 (diff)
downloadnextcloud-server-f39454ed12018402f38a8f6bf99fc94d676a0a3a.tar.gz
nextcloud-server-f39454ed12018402f38a8f6bf99fc94d676a0a3a.zip
Fix "Line indented incorrectly"
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/access.php2
-rw-r--r--apps/user_ldap/lib/connection.php8
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 91f56ad882e..e1eea2f46c0 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -356,7 +356,7 @@ abstract class Access {
);
}
$res = $query->execute(array($dn))->fetchOne();
- if($res) {
+ if($res) {
return $res;
}
return false;
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index 687e2692270..b14cdafff89 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -338,11 +338,11 @@ class Connection {
}
$this->ldapConnectionRes = ldap_connect($this->config['ldapHost'], $this->config['ldapPort']);
if(ldap_set_option($this->ldapConnectionRes, LDAP_OPT_PROTOCOL_VERSION, 3)) {
- if(ldap_set_option($this->ldapConnectionRes, LDAP_OPT_REFERRALS, 0)) {
- if($this->config['ldapTLS']) {
- ldap_start_tls($this->ldapConnectionRes);
- }
+ if(ldap_set_option($this->ldapConnectionRes, LDAP_OPT_REFERRALS, 0)) {
+ if($this->config['ldapTLS']) {
+ ldap_start_tls($this->ldapConnectionRes);
}
+ }
}
return $this->bind();