Fixed a notice during multilang upgrade when prefix was null

This commit is contained in:
moodler 2007-02-08 14:52:03 +00:00
parent 36011ea1d2
commit c29b897b23

View File

@ -45,7 +45,7 @@ $i = 0;
$skiptables = array($CFG->prefix.'config');//, $CFG->prefix.'sessions2');
foreach ($tables as $table) {
if (strpos($table, $CFG->prefix) !== 0
if (($CFG->prefix && strpos($table, $CFG->prefix) !== 0)
or strpos($table, $CFG->prefix.'pma') === 0) { // Not our tables
continue;
}