We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 6841a8d0 authored by Brion Vibber's avatar Brion Vibber

RegisterThrottlePlugin tweak for silencing checks: make sure we don't crash...

RegisterThrottlePlugin tweak for silencing checks: make sure we don't crash during registration if another profile registered from this address has been since deleted.

Followup to commit 1caa0842
parent 1caa0842
......@@ -157,7 +157,7 @@ class RegisterThrottlePlugin extends Plugin
$ids = Registration_ip::usersByIP($ipaddress);
foreach ($ids as $id) {
$profile = Profile::staticGet('id', $id);
if ($profile->isSilenced()) {
if ($profile && $profile->isSilenced()) {
throw new Exception(_("A banned user has registered from this address."));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment