Removing a warning when prefix == ''

This commit is contained in:
moodler 2008-07-25 05:41:51 +00:00
parent 9d8d1a3494
commit de6961ccf7

View File

@ -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;
}