diff options
author | thomascube <thomas@roundcube.net> | 2008-03-03 08:52:50 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-03-03 08:52:50 +0000 |
commit | 1c4e5dd4d201b599094a40e908ebcaa6de40ac05 (patch) | |
tree | fe45d446458723d5ea342d8d416e9fcb9594093b /installer/config.php | |
parent | 512d8c2b021d98e88a949f0ef57214ee28ebae65 (diff) |
Some more bugfixes for the install script
Diffstat (limited to 'installer/config.php')
-rw-r--r-- | installer/config.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/installer/config.php b/installer/config.php index afea04724..5b365a5a5 100644 --- a/installer/config.php +++ b/installer/config.php @@ -251,9 +251,13 @@ echo $select_dbba->show($RCI->getprop('db_backend')); <?php $text_imaphost = new textfield(array('name' => '_default_host[]', 'size' => 30)); +$default_hosts = $RCI->get_hostlist(); + +if (empty($default_hosts)) + $default_hosts = array(''); $i = 0; -foreach ($RCI->get_hostlist() as $host) { +foreach ($default_hosts as $host) { echo '<div id="defaulthostentry'.$i.'">' . $text_imaphost->show($host); if ($i++ > 0) echo '<a href="#" onclick="removehostfield(this.parentNode);return false" class="removelink" title="Remove this entry">remove</a>'; |