Merge pull request #6345 from marcosgdf/bug-4758

FIX #4758 PHP warning when installing to PostgreSQL with incorrect credentials
This commit is contained in:
Laurent Destailleur 2017-02-02 01:09:23 +01:00 committed by GitHub
commit 9d797f59a1

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;
}