mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-43884-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
b2ca12e904
@ -327,7 +327,7 @@ class mssql_native_moodle_database extends moodle_database {
|
||||
if ($result) {
|
||||
while ($row = mssql_fetch_row($result)) {
|
||||
$tablename = reset($row);
|
||||
if ($this->prefix !== '') {
|
||||
if ($this->prefix !== false && $this->prefix !== '') {
|
||||
if (strpos($tablename, $this->prefix) !== 0) {
|
||||
continue;
|
||||
}
|
||||
|
@ -406,7 +406,7 @@ class oci_native_moodle_database extends moodle_database {
|
||||
oci_free_statement($stmt);
|
||||
$records = array_map('strtolower', $records['TABLE_NAME']);
|
||||
foreach ($records as $tablename) {
|
||||
if ($this->prefix !== '') {
|
||||
if ($this->prefix !== false && $this->prefix !== '') {
|
||||
if (strpos($tablename, $this->prefix) !== 0) {
|
||||
continue;
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ class pgsql_native_moodle_database extends moodle_database {
|
||||
if ($result) {
|
||||
while ($row = pg_fetch_row($result)) {
|
||||
$tablename = reset($row);
|
||||
if ($this->prefix !== '') {
|
||||
if ($this->prefix !== false && $this->prefix !== '') {
|
||||
if (strpos($tablename, $this->prefix) !== 0) {
|
||||
continue;
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ class sqlite3_pdo_moodle_database extends pdo_moodle_database {
|
||||
foreach ($rstables as $table) {
|
||||
$table = $table['name'];
|
||||
$table = strtolower($table);
|
||||
if ($this->prefix !== '') {
|
||||
if ($this->prefix !== false && $this->prefix !== '') {
|
||||
if (strpos($table, $this->prefix) !== 0) {
|
||||
continue;
|
||||
}
|
||||
|
@ -380,7 +380,7 @@ class sqlsrv_native_moodle_database extends moodle_database {
|
||||
if ($result) {
|
||||
while ($row = sqlsrv_fetch_array($result)) {
|
||||
$tablename = reset($row);
|
||||
if ($this->prefix !== '') {
|
||||
if ($this->prefix !== false && $this->prefix !== '') {
|
||||
if (strpos($tablename, $this->prefix) !== 0) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user