From b56311dca04183e12ae07798ea091682be0d3e37 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 10 Apr 2011 12:28:17 +0000 Subject: [PATCH] patch #2932: allow PostgreSQL unix domain sockets --- phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php index b7236c6552..c97bc987dd 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -1538,7 +1538,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper switch($type) { default: - $dsn = self::$pdo_type.':host='.$egw_db->Host.';port='.$egw_db->Port.';dbname='.$egw_db->Database; + $dsn = self::$pdo_type.':dbname='.$egw_db->Database.($egw_db->Host ? ';host='.$egw_db->Host.($egw_db->Port ? ';port='.$egw_db->Port : '') : ''); break; } // check once if pdo extension and DB specific driver is loaded or can be loaded