FIX #4758 PHP warning when installing to PostgreSQL with incorrect credentials

Closes #4758
This commit is contained in:
Marcos García de La Fuente 2017-01-29 23:05:20 +01:00
parent 10bacda820
commit 58d77a14af

View File

@ -412,8 +412,8 @@ class DoliDBPgsql extends DoliDB
{
$this->database_name = $name;
pg_set_error_verbosity($this->db, PGSQL_ERRORS_VERBOSE); // Set verbosity to max
pg_query($this->db, "set datestyle = 'ISO, YMD';");
}
pg_query($this->db, "set datestyle = 'ISO, YMD';");
return $this->db;
}