From 58d77a14af7118a7ae9060c34c52488de668367e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sun, 29 Jan 2017 23:05:20 +0100 Subject: [PATCH] FIX #4758 PHP warning when installing to PostgreSQL with incorrect credentials Closes #4758 --- htdocs/core/db/pgsql.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index 3b9ad9ac3e4..89f2a66bdea 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -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; }