Skip to content

Commit

Permalink
Allow adodb to find tables when working without prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed May 16, 2008
1 parent c7126a3 commit 327744b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dml/adodb_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function get_tables() {
$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;
}
Expand Down

0 comments on commit 327744b

Please sign in to comment.