Code

Added pgsql fix
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Oct 2008 06:58:30 +0000 (06:58 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Oct 2008 06:58:30 +0000 (06:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12637 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_pgsql_opengw.inc

index d3432226f7de549aaac8fbc52b6b2e9a70a6cbfb..dd364b54cac48ae94a3000a34aca5cf075ef985f 100644 (file)
@@ -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);