]> git.mjollnir.org Git - moodle.git/commitdiff
Avoid some notices. Part of MDL-6854
authorstronk7 <stronk7>
Thu, 5 Oct 2006 19:51:47 +0000 (19:51 +0000)
committerstronk7 <stronk7>
Thu, 5 Oct 2006 19:51:47 +0000 (19:51 +0000)
admin/utfdbmigrate.php

index a1234a1676c8140c80160976d3dd204ba4354415..fd5616d45879f613a02f35bff2ea8b6c6f08a08b 100755 (executable)
@@ -517,7 +517,7 @@ function db_migrate2utf8(){   //Eloy: Perhaps some type of limit parameter here
                                Note that this code will leave remaining NOT NULL fiels
                                unmodified at all, folowing the old approach 
                             */
-                            if($cols = $db->MetaColumns($prefix.$dbtablename)) {
+                            if(($cols = $db->MetaColumns($prefix.$dbtablename)) && $fieldname != 'dummy') {
                                 $cols = array_change_key_case($cols, CASE_LOWER); ///lowercase col names
                                 $notnull = 'NOT NULL';  ///Old default
                                 if ($col = $cols[strtolower($fieldname)]) {