From fa02465c54375d1298c15dacfbdd9c4915ac730e Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 10 Jan 2013 11:42:22 +0100 Subject: [PATCH] MDL-37420 rework pg schema (partial backport of 92b00c3) --- lib/dml/pgsql_native_moodle_database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dml/pgsql_native_moodle_database.php b/lib/dml/pgsql_native_moodle_database.php index 47d050b2649..f47ebd7cfd1 100644 --- a/lib/dml/pgsql_native_moodle_database.php +++ b/lib/dml/pgsql_native_moodle_database.php @@ -182,7 +182,7 @@ class pgsql_native_moodle_database extends moodle_database { } // Select schema if specified, otherwise the first one wins. - if (isset($this->dboptions['dbschema'])) { + if (!empty($this->dboptions['dbschema'])) { $sql .= "SET search_path = '".$this->dboptions['dbschema']."'; "; }