From: stronk7 Date: Thu, 5 Oct 2006 19:51:47 +0000 (+0000) Subject: Avoid some notices. Part of MDL-6854 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1db1336bd4c56e5530724051243f7045815c10cc;p=moodle.git Avoid some notices. Part of MDL-6854 --- diff --git a/admin/utfdbmigrate.php b/admin/utfdbmigrate.php index a1234a1676..fd5616d458 100755 --- a/admin/utfdbmigrate.php +++ b/admin/utfdbmigrate.php @@ -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)]) {