diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-03 08:52:50 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-03 08:52:50 +0000 |
| commit | da05d134c3b658adc8922e2cd669d5592f8ef3ed (patch) | |
| tree | 73ad1170fe12dd09a51d581530bfd2a22c2abce5 | |
| parent | 4ad343529958fd4c461d11f558569f627704326d (diff) | |
Some more bugfixes for the install script
git-svn-id: https://svn.roundcube.net/trunk@1169 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/installer/check.php | 2 | ||||
| -rw-r--r-- | roundcubemail/installer/config.php | 6 | ||||
| -rw-r--r-- | roundcubemail/installer/rcube_install.php | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/roundcubemail/installer/check.php b/roundcubemail/installer/check.php index 45aacde16..8352364f5 100644 --- a/roundcubemail/installer/check.php +++ b/roundcubemail/installer/check.php @@ -31,7 +31,7 @@ $source_urls = array( 'Mail_mime' => 'http://pear.php.net/package/Mail_mime' ); -echo '<input type="hidden" name="_step" value="' . ($RCI->configured ? 2 : 3) . '" />'; +echo '<input type="hidden" name="_step" value="' . ($RCI->configured ? 3 : 2) . '" />'; ?> <h3>Checking PHP version</h3> diff --git a/roundcubemail/installer/config.php b/roundcubemail/installer/config.php index afea04724..5b365a5a5 100644 --- a/roundcubemail/installer/config.php +++ b/roundcubemail/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>'; diff --git a/roundcubemail/installer/rcube_install.php b/roundcubemail/installer/rcube_install.php index efe139d7d..79d003cdf 100644 --- a/roundcubemail/installer/rcube_install.php +++ b/roundcubemail/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; } |
