summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
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-26 18:03:41 +0200
commit05f909dcf35878829b243de63eabd5d0f0fe3fc9 (patch)
tree1a34b76cbadf05e3e31dd60d1cc47b4976b0fbdc /apps/user_ldap
parent31c3814b0a3d33a25f4fbcc8777037f8c6c14533 (diff)
downloadnextcloud-server-05f909dcf35878829b243de63eabd5d0f0fe3fc9.tar.gz
nextcloud-server-05f909dcf35878829b243de63eabd5d0f0fe3fc9.zip
fixes wrong variable usage
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap')
-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 e05bc539a77..d0d51ae8c85 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;