From 327744b1dbba65956aafa0035d0d9bf90427ecb4 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 16 May 2008 02:32:18 +0000 Subject: [PATCH] Allow adodb to find tables when working without prefix --- lib/dml/adodb_moodle_database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dml/adodb_moodle_database.php b/lib/dml/adodb_moodle_database.php index a13d5a9863..10f5f139c3 100644 --- a/lib/dml/adodb_moodle_database.php +++ b/lib/dml/adodb_moodle_database.php @@ -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; } -- 2.39.5