]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/RegisterThrottle/RegisterThrottlePlugin.php
* onPluginVersion added.
[quix0rs-gnu-social.git] / plugins / RegisterThrottle / RegisterThrottlePlugin.php
index 369426d337cd9ef2da04fd7b176707ada014c86a..0078d3c6004ad7130d7ccf509dded28d7e62b7e0 100644 (file)
@@ -157,8 +157,8 @@ class RegisterThrottlePlugin extends Plugin
             $ids = Registration_ip::usersByIP($ipaddress);
             foreach ($ids as $id) {
                 $profile = Profile::staticGet('id', $id);
-                if ($profile->isSilenced()) {
-                    throw new Exception(_("A banned user has registered from this address."));
+                if ($profile && $profile->isSilenced()) {
+                    throw new Exception(_m("A banned user has registered from this address."));
                 }
             }
         }