]> git.mjollnir.org Git - moodle.git/commitdiff
Allow adodb to find tables when working without prefix
authorstronk7 <stronk7>
Fri, 16 May 2008 02:32:18 +0000 (02:32 +0000)
committerstronk7 <stronk7>
Fri, 16 May 2008 02:32:18 +0000 (02:32 +0000)
lib/dml/adodb_moodle_database.php

index a13d5a98633ca3aba1d0b8f480b80458f09e889a..10f5f139c3d6294f2130c19b855ef3f5f9da667b 100644 (file)
@@ -60,7 +60,7 @@ abstract class adodb_moodle_database extends moodle_database {
         $tables = array();
         foreach ($metatables as $table) {
             $table = strtolower($table);
-            if (strpos($table, $this->prefix) === 0) {
+            if (strpos($table, $this->prefix) === 0 || empty($this->prefix)) {
                 $tablename = substr($table, strlen($this->prefix));
                 $tables[$tablename] = $tablename;
             }