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