Tweak on Host inclusion.

This commit is contained in:
Andrs Montaez 2012-02-04 16:41:09 -02:00
parent 776b21ce08
commit 38711cbac2

View file

@ -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;
}
}
}
}