From b50b09d62d6edb32b9e6fbe8290752c7a5baf582 Mon Sep 17 00:00:00 2001 From: Miroslav Yovchev Date: Mon, 20 Jun 2016 16:51:04 +0300 Subject: [PATCH] Do not panic on empty ban list file --- e107_handlers/iphandler_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) != '