Commit 2d1dc503 authored by Nigel McNie's avatar Nigel McNie

Allow connections to local unix sockets. Fixes bug #808

parent 175f667c
......@@ -84,7 +84,10 @@ try {
$db = &ADONewConnection($CFG->dbtype);
$dbgenerator = null;
if (!empty($CFG->dbport)) {
if (empty($CFG->dbhost)) {
$CFG->dbhost = '';
}
else if (!empty($CFG->dbport)) {
$CFG->dbhost .= ':'.$CFG->dbport;
}
if (!empty($CFG->dbpersist)) { // Use persistent connection (default)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment