A few bug fixes in updating the database from version 20.
[gnucomo.git] / src / phpclasses / db.postgres.php
index 234f832..0fc268c 100644 (file)
      }
     
      $local_connection_string = "dbname=$this->db_name user=$this->db_user ";
+
      if ($this->db_password == '') {
         $local_connection_string .= $this->db_password;
      }
 
-       $this->db_connection = @pg_pconnect($local_connection_string);
-       if ($this->have_db_connection() == "FALSE") {
+       $this->db_connection = pg_pconnect($local_connection_string);
+       if ($this->have_db_connection() == FALSE) {
           syslog (LOG_INFO, "Failed to make a connection to Postgres");
-           die ("connection to Postgres failed");
+           die ("connection to Postgres failed\n");
        } else {
           syslog (LOG_INFO, "Connection to Postgres was made correctly");
        }