summaryrefslogtreecommitdiff
path: root/roundcubemail/installer/config.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-28 22:59:02 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-28 22:59:02 +0000
commitdcf21363a62c8f661e5e67baa0c6ffbed02cf263 (patch)
tree3b30d874f439dd7e0f1b6a1ba57418154a9f414b /roundcubemail/installer/config.php
parent9cf8668eb789a66539ee470aafb52d1b7740ba2e (diff)
Fix imap host selection in install script
git-svn-id: https://svn.roundcube.net/trunk@1158 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/config.php')
-rw-r--r--roundcubemail/installer/config.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/roundcubemail/installer/config.php b/roundcubemail/installer/config.php
index 97052c8da..9d22c28dd 100644
--- a/roundcubemail/installer/config.php
+++ b/roundcubemail/installer/config.php
@@ -250,14 +250,10 @@ echo $select_dbba->show($RCI->getprop('db_backend'));
<div id="defaulthostlist">
<?php
-$default_hosts = (array)$RCI->getprop('default_host');
$text_imaphost = new textfield(array('name' => '_default_host[]', 'size' => 30));
$i = 0;
-foreach ($default_hosts as $key => $name) {
- if (empty($name))
- continue;
- $host = is_numeric($key) ? $name : $key;
+foreach ($RCI->get_hostlist() 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>';