]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixes wrong variable usage 12137/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 26 Oct 2018 16:01:57 +0000 (18:01 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Tue, 30 Oct 2018 11:19:24 +0000 (12:19 +0100)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/Access.php

index a03b4a4cb9c6a730913300fe5c7eb923c9234ac3..d615a4241bfea3bcf13b8ee6dd74c656892721bd 100644 (file)
@@ -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;