From 1ab1916d5168b5667bdcb21c348d81c3580594d2 Mon Sep 17 00:00:00 2001 From: chriskl Date: Tue, 29 Apr 2003 03:05:07 +0000 Subject: [PATCH] fix for supporting unix domain socket connections --- classes/Misc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Misc.php b/classes/Misc.php index 1756a8f5..d3a64674 100644 --- a/classes/Misc.php +++ b/classes/Misc.php @@ -2,7 +2,7 @@ /** * Class to hold various commonly used functions * - * $Id: Misc.php,v 1.26 2003/04/23 06:34:10 chriskl Exp $ + * $Id: Misc.php,v 1.27 2003/04/29 03:05:07 chriskl Exp $ */ class Misc { @@ -101,7 +101,7 @@ include_once('classes/database/ADODB_base.php'); $adodb = new ADODB_base('postgres7'); - $adodb->conn->connect("{$host}:{$port}", $user, $password, 'template1'); + $adodb->conn->connect(($host === null) ? null : "{$host}:{$port}", $user, $password, 'template1'); $sql = "SELECT VERSION() AS version"; $field = $adodb->selectField($sql, 'version'); -- 2.39.5