summaryrefslogtreecommitdiff
path: root/installer/web.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-14 17:07:31 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-14 17:07:31 -0800
commit824087416a2469cf044b4a9193a0047c6c889333 (patch)
tree1d6ed02a442628a3a3c7dcfa5202e9e91a95ab86 /installer/web.php
parent74471df7770784887bd44cfbe02f48ec12bf8532 (diff)
Avoid PHP warnings when the DB host string has no port.
Diffstat (limited to 'installer/web.php')
-rw-r--r--installer/web.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/web.php b/installer/web.php
index 90143afb..0a3cdb6e 100644
--- a/installer/web.php
+++ b/installer/web.php
@@ -38,7 +38,7 @@ if (installer::already_installed()) {
"dbname" => $_POST["dbname"],
"prefix" => $_POST["prefix"],
"type" => function_exists("mysqli_set_charset") ? "mysqli" : "mysql");
- list ($config["host"], $config["port"]) = explode(":", $config["host"]);
+ list ($config["host"], $config["port"]) = explode(":", $config["host"] . ":");
if (!installer::connect($config)) {
$content = render("invalid_db_info.html.php");