From: cajus Date: Thu, 9 Oct 2008 06:58:30 +0000 (+0000) Subject: Added pgsql fix X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4cf0d1376498ade1ebb01252f620612e7f86a87f;p=gosa.git Added pgsql fix git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12637 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);