From de6961ccf713659ca6c963e300a701c3645ed0dd Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 25 Jul 2008 05:41:51 +0000 Subject: [PATCH] Removing a warning when 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 ba3cc9ea5e..c3e09c7d72 100644 --- a/lib/dml/adodb_moodle_database.php +++ b/lib/dml/adodb_moodle_database.php @@ -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; } -- 2.39.5