mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-20 06:25:04 +02:00
Tweak on Host inclusion.
This commit is contained in:
parent
776b21ce08
commit
38711cbac2
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue