From 112c54ffbbfd65d2d76ce2526b77407f7fb067b8 Mon Sep 17 00:00:00 2001
From: thomascube
Date: Thu, 28 Feb 2008 22:59:02 +0000
Subject: Fix imap host selection in install script
---
installer/test.php | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
(limited to 'installer/test.php')
diff --git a/installer/test.php b/installer/test.php
index 62535ac33..d83534bb3 100644
--- a/installer/test.php
+++ b/installer/test.php
@@ -238,9 +238,14 @@ echo '
';
getprop('default_host');
-$select_imaphost = new select(array('name' => '_host', 'id' => 'imaphost'));
-$select_imaphost->add(array_values($default_hosts));
+$default_hosts = $RCI->get_hostlist();
+if (!empty($default_hosts)) {
+ $host_field = new select(array('name' => '_host', 'id' => 'imaphost'));
+ $host_field->add($default_hosts);
+}
+else {
+ $host_field = new textfield(array('name' => '_host', 'id' => 'imaphost'));
+}
$user_field = new textfield(array('name' => '_user', 'id' => 'imapuser'));
$pass_field = new passwordfield(array('name' => '_pass', 'id' => 'imappass'));
@@ -251,7 +256,7 @@ $pass_field = new passwordfield(array('name' => '_pass', 'id' => 'imappass'));
|
- show($_POST['_host'] ? $_POST['_host'] : '0'); ?> |
+ show($_POST['_host']); ?> |
| Port |
--
cgit v1.2.3