]> git.mjollnir.org Git - moodle.git/commitdiff
Removing a warning when prefix == ''
authormoodler <moodler>
Fri, 25 Jul 2008 05:41:51 +0000 (05:41 +0000)
committermoodler <moodler>
Fri, 25 Jul 2008 05:41:51 +0000 (05:41 +0000)
lib/dml/adodb_moodle_database.php

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