MDL-37420 rework pg schema (partial backport of 92b00c3)
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 10 Jan 2013 10:42:22 +0000 (11:42 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 11 Jan 2013 09:34:19 +0000 (10:34 +0100)
lib/dml/pgsql_native_moodle_database.php

index 47d050b..f47ebd7 100644 (file)
@@ -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']."'; ";
         }