mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
Removing a warning when prefix == ''
This commit is contained in:
parent
9d8d1a3494
commit
de6961ccf7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user