Skip to content
Snippets Groups Projects
Commit 501dccab authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: property must be set if success

parent c39dadea
Branches
Tags
No related merge requests found
......@@ -374,6 +374,12 @@ class DoliDb
$con_string = "host='".$host."' port='".$port."' dbname='".$name."' user='".$login."' password='".$passwd."'";
$this->db = pg_connect($con_string);
if ($this->db)
{
$this->database_name = $name;
pg_set_error_verbosity($this->db, PGSQL_ERRORS_VERBOSE); // Set verbosity to max
}
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment