diff options
author | thomascube <thomas@roundcube.net> | 2008-03-02 13:36:34 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-03-02 13:36:34 +0000 |
commit | 2371191c30edbbafa420882cd2f812b8ab03f2a9 (patch) | |
tree | eed7af473ff7efd39de1f4247a31278b96a1766b /installer/config.php | |
parent | 330127a6123e45a96132910ddd991c37b2ed5953 (diff) |
Fix sqlite dsn composing
Diffstat (limited to 'installer/config.php')
-rw-r--r-- | installer/config.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/installer/config.php b/installer/config.php index 9d22c28dd..afea04724 100644 --- a/installer/config.php +++ b/installer/config.php @@ -202,15 +202,15 @@ $input_dbpass = new textfield(array('name' => '_dbpass', 'size' => 20, 'id' => " $dsnw = DB::parseDSN($RCI->getprop('db_dsnw')); -echo $select_dbtype->show($_POST['_dbtype'] ? $_POST['_dbtype'] : $dsnw['phptype']); +echo $select_dbtype->show($RCI->is_post ? $_POST['_dbtype'] : $dsnw['phptype']); echo '<label for="cfgdbtype">Database type</label><br />'; -echo $input_dbhost->show($_POST['_dbhost'] ? $_POST['_dbhost'] : $dsnw['hostspec']); +echo $input_dbhost->show($RCI->is_post ? $_POST['_dbhost'] : $dsnw['hostspec']); echo '<label for="cfgdbhost">Database server</label><br />'; -echo $input_dbname->show($_POST['_dbname'] ? $_POST['_dbname'] : $dsnw['database']); +echo $input_dbname->show($RCI->is_post ? $_POST['_dbname'] : $dsnw['database']); echo '<label for="cfgdbname">Database name</label><br />'; -echo $input_dbuser->show($_POST['_dbuser'] ? $_POST['_dbuser'] : $dsnw['username']); +echo $input_dbuser->show($RCI->is_post ? $_POST['_dbuser'] : $dsnw['username']); echo '<label for="cfgdbuser">Database user name (needs write permissions)</label><br />'; -echo $input_dbpass->show($_POST['_dbpass'] ? $_POST['_dbpass'] : $dsnw['password']); +echo $input_dbpass->show($RCI->is_post ? $_POST['_dbpass'] : $dsnw['password']); echo '<label for="cfgdbpass">Database password</label><br />'; ?> |