diff --git a/security/Group.php b/security/Group.php index 284702d4e..b930ddfe5 100644 --- a/security/Group.php +++ b/security/Group.php @@ -281,6 +281,8 @@ class Group extends DataObject { */ function allowedIPAddress($ip) { if(!$this->IPRestrictions) return true; + if(!$ip) return false; + $ipPatterns = explode("\n", $this->IPRestrictions); foreach($ipPatterns as $ipPattern) { $ipPattern = trim($ipPattern);