Issue 9736: Fix for undroppable registrations

2022.09-rc
Michael 2021-01-02 09:11:38 +00:00
rodzic b10cd8772c
commit c0ac120578
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -1159,6 +1159,9 @@ class User
return false;
}
// Delete the avatar
Photo::delete(['uid' => $register['uid']]);
return DBA::delete('user', ['uid' => $register['uid']]) &&
Register::deleteByHash($register['hash']);
}