summaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-03-20 15:08:21 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-04-15 09:14:12 +0200
commit16e9bf23094a218d01d6b87b22e358473af1e731 (patch)
treeea69f1a2a3388b15dc63dcf51bccc2493b905713 /lib/private/User
parentb212151af10bf70e13056921b866e75c397382f0 (diff)
downloadnextcloud-server-16e9bf23094a218d01d6b87b22e358473af1e731.tar.gz
nextcloud-server-16e9bf23094a218d01d6b87b22e358473af1e731.zip
Make sure MySQL is not saying 'this' = 'this ' is true
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php
index 303050a7716..e55d4395191 100644
--- a/lib/private/User/Manager.php
+++ b/lib/private/User/Manager.php
@@ -188,7 +188,7 @@ class Manager extends PublicEmitter implements IUserManager {
*/
public function userExists($uid) {
$user = $this->get($uid);
- return ($user !== null);
+ return $user !== null && $user->getUID() === $uid;
}
/**