Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 11997ac

Browse files
correct check for duplicate email
1 parent 8ab07b3 commit 11997ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public function modifyUser($user, $changes) {
395395

396396
if(isset($changes['mail'])) {
397397
$found = $this->getUserByEmail($changes['mail']);
398-
if($found != $user) {
398+
if($found && $found != $user) {
399399
msg($this->getLang('emailduplicate'), -1);
400400
return false;
401401
}

0 commit comments

Comments
 (0)