]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix determining the UUID attribute, default of the override is null
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 17 Feb 2017 01:06:10 +0000 (02:06 +0100)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 17 Feb 2017 01:06:10 +0000 (02:06 +0100)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/Access.php

index 9e93ef2ecaa3ea610b937f33931726ab36dca5f7..cc0446ae5231f4bb0224ec8c4579d9e74d21a85d 100644 (file)
@@ -1473,7 +1473,7 @@ class Access extends LDAPUtility implements IUserTools {
                        return true;
                }
 
-               if ($uuidOverride !== '' && !$force) {
+               if (is_string($uuidOverride) && trim($uuidOverride) !== '' && !$force) {
                        $this->connection->$uuidAttr = $uuidOverride;
                        return true;
                }