From: moodler Date: Fri, 25 Jul 2008 05:41:51 +0000 (+0000) Subject: Removing a warning when prefix == '' X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=de6961ccf713659ca6c963e300a701c3645ed0dd;p=moodle.git Removing a warning when prefix == '' --- 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; }