From: stronk7 Date: Fri, 16 May 2008 02:32:18 +0000 (+0000) Subject: Allow adodb to find tables when working without prefix X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=327744b1dbba65956aafa0035d0d9bf90427ecb4;p=moodle.git Allow adodb to find tables when working without prefix --- 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; }