From 1c4e5dd4d201b599094a40e908ebcaa6de40ac05 Mon Sep 17 00:00:00 2001 From: thomascube Date: Mon, 3 Mar 2008 08:52:50 +0000 Subject: Some more bugfixes for the install script --- installer/check.php | 2 +- installer/config.php | 6 +++++- installer/rcube_install.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'installer') diff --git a/installer/check.php b/installer/check.php index 45aacde16..8352364f5 100644 --- a/installer/check.php +++ b/installer/check.php @@ -31,7 +31,7 @@ $source_urls = array( 'Mail_mime' => 'http://pear.php.net/package/Mail_mime' ); -echo ''; +echo ''; ?>

Checking PHP version

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')); '_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 '
' . $text_imaphost->show($host); if ($i++ > 0) echo 'remove'; diff --git a/installer/rcube_install.php b/installer/rcube_install.php index efe139d7d..79d003cdf 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -79,7 +79,7 @@ class rcube_install */ function _load_config($suffix) { - include '../config/main.inc' . $suffix; + @include '../config/main.inc' . $suffix; if (is_array($rcmail_config)) { $this->config += $rcmail_config; } -- cgit v1.2.3