diff --git a/Mage/Config.php b/Mage/Config.php index 854527b..546b8e6 100644 --- a/Mage/Config.php +++ b/Mage/Config.php @@ -54,7 +54,10 @@ class Mage_Config } else if (is_string($config['hosts'])) { $fileContent = fopen($config['hosts'], 'r'); while (($host = fgets($fileContent)) == true) { - $hosts[] = trim($host); + $host = trim($host); + if ($host != '') { + $hosts[] = $host; + } } } }