From 4cf0d1376498ade1ebb01252f620612e7f86a87f Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 9 Oct 2008 06:58:30 +0000 Subject: [PATCH] Added pgsql fix git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12637 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_pgsql_opengw.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_pgsql_opengw.inc b/include/class_pgsql_opengw.inc index d3432226f..dd364b54c 100644 --- a/include/class_pgsql_opengw.inc +++ b/include/class_pgsql_opengw.inc @@ -28,7 +28,7 @@ class pgre_sql{ { error_reporting(E_ALL); if(is_callable("pg_connect")){ - if(!empty($this->pwd)){ + if(empty($this->pwd)){ $this->handle = @pg_connect("dbname=".$this->db." host=".$this->server." user=".$this->user); }else{ $this->handle = @pg_connect("dbname=".$this->db." host=".$this->server." user=".$this->user." password=".$this->pwd); -- 2.30.2