diff --git a/e107_handlers/iphandler_class.php b/e107_handlers/iphandler_class.php index 6e97c5fb9..51603cc49 100644 --- a/e107_handlers/iphandler_class.php +++ b/e107_handlers/iphandler_class.php @@ -385,7 +385,7 @@ class eIPHandler if (!is_readable($fileName)) return; // @todo should we just die if no file - we know the IP is in the ban list. $vals = file($fileName); - if ($vals === FALSE) return; + if ($vals === FALSE || count($vals) == 0) return; if (substr($vals[0], 0, 5) != '