From 38711cbac2d3aef3e699b608060fe38e104ad085 Mon Sep 17 00:00:00 2001 From: Andrs Montaez Date: Sat, 4 Feb 2012 16:41:09 -0200 Subject: [PATCH] Tweak on Host inclusion. --- Mage/Config.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; + } } } }