Merge pull request #4468 from annando/issue-4396

Issue 4396: Avoid SQL error during UImport
This commit is contained in:
Hypolite Petovan 2018-02-17 09:08:12 -05:00 committed by GitHub
commit 07c35935f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ class UserImport
// check for username
// check if username matches deleted account
if (dba::exists('user', ['nickname' => $account['user']['nickname']])
|| dba::exists('userd', ['nickname' => $account['user']['nickname']])) {
|| dba::exists('userd', ['username' => $account['user']['nickname']])) {
notice(L10n::t("User '%s' already exists on this server!", $account['user']['nickname']));
return;
}