diff options
Diffstat (limited to 'plugins/RegisterThrottle/RegisterThrottlePlugin.php')
-rw-r--r-- | plugins/RegisterThrottle/RegisterThrottlePlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/RegisterThrottle/RegisterThrottlePlugin.php b/plugins/RegisterThrottle/RegisterThrottlePlugin.php index 369426d33..7e2dde80f 100644 --- a/plugins/RegisterThrottle/RegisterThrottlePlugin.php +++ b/plugins/RegisterThrottle/RegisterThrottlePlugin.php @@ -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.")); } } |