summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-10-26 18:01:57 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-10-30 12:19:24 +0100
commit64fa99a97488dc6dced0aa609e93ae078c91f405 (patch)
treef9d568001945514cbb49be1016d021164df3f90a
parent0578126ab7ecb96f637726cbd47a38577829142b (diff)
downloadnextcloud-server-64fa99a97488dc6dced0aa609e93ae078c91f405.tar.gz
nextcloud-server-64fa99a97488dc6dced0aa609e93ae078c91f405.zip
fixes wrong variable usage
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/user_ldap/lib/Access.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index a03b4a4cb9c..d615a4241bf 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -624,9 +624,9 @@ class Access extends LDAPUtility implements IUserTools {
$this->connection->setConfiguration(['ldapCacheTTL' => $originalTTL]);
$altName = $this->createAltInternalOwnCloudName($intName, $isUser);
- if(is_string($altName) && $mapper->map($fdn, $altName, $uuid)) {
- if($this->ncUserManager instanceof PublicEmitter && $isUser) {
- $this->ncUserManager->emit('\OC\User', 'assignedUserId', [$intName]);
+ if (is_string($altName) && $mapper->map($fdn, $altName, $uuid)) {
+ if ($this->ncUserManager instanceof PublicEmitter && $isUser) {
+ $this->ncUserManager->emit('\OC\User', 'assignedUserId', [$altName]);
}
$newlyMapped = true;
return $altName;