Fix statement brackets
parent
4ae6625cce
commit
1236cc5c3b
|
@ -41,7 +41,7 @@ class defense extends rcube_plugin {
|
||||||
*/
|
*/
|
||||||
private function isIPinArray($ip, $array) {
|
private function isIPinArray($ip, $array) {
|
||||||
foreach ($array as $value) {
|
foreach ($array as $value) {
|
||||||
if (strpos($value, '/') === false) && ($ip == $value) { return true; }
|
if ((strpos($value, '/') === false) && ($ip == $value)) { return true; }
|
||||||
if (isIPinCIDR($ip, $value)) { return true; }
|
if (isIPinCIDR($ip, $value)) { return true; }
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue