1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 15:51:16 +02:00

Fix email gambit

This commit is contained in:
Toby Zerner
2017-11-20 09:17:44 +10:30
parent 68f9baf974
commit 78dafa76c5

View File

@@ -60,8 +60,6 @@ class EmailGambit extends AbstractRegexGambit
$email = trim($matches[1], '"');
$user = $this->users->findByEmail($email);
$search->getQuery()->where('id', $negate ? '!=' : '=', $user->id);
$search->getQuery()->where('email', $negate ? '!=' : '=', $email);
}
}