]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a notice during multilang upgrade when prefix was null
authormoodler <moodler>
Thu, 8 Feb 2007 14:52:03 +0000 (14:52 +0000)
committermoodler <moodler>
Thu, 8 Feb 2007 14:52:03 +0000 (14:52 +0000)
admin/multilangupgrade.php

index c0e63cb32efbfd6c19a5d3404fd1f1da9abb4ecc..fb88a4d04d7e43b9a0ed0561475b678d6450e39f 100644 (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;
     }