Fix function reference

develop
Steve Allison 2013-02-20 21:10:57 +00:00
parent 1236cc5c3b
commit 0f0fe693e4
1 changed files with 2 additions and 2 deletions

View File

@ -99,12 +99,12 @@ class defense extends rcube_plugin {
*/ */
public function hookLoginForm($content) { public function hookLoginForm($content) {
// If IP is listed in whitelist, return unmodified $content // If IP is listed in whitelist, return unmodified $content
if (isIPinArray($this->ipaddr, $this->whitelist)) { if ($this->isIPinArray($this->ipaddr, $this->whitelist)) {
return $content; return $content;
} }
// If IP is listed in blacklist, deny access // If IP is listed in blacklist, deny access
if (isIPinArray($this->ipaddr, $this->blacklist)) { if ($this->isIPinArray($this->ipaddr, $this->blacklist)) {
header('HTTP/1.1 403 Forbidden'); header('HTTP/1.1 403 Forbidden');
die(); die();
} }