From 1db1336bd4c56e5530724051243f7045815c10cc Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 5 Oct 2006 19:51:47 +0000 Subject: [PATCH] Avoid some notices. Part of MDL-6854 --- admin/utfdbmigrate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]) { -- 2.39.5