Permalink
Browse files

Avoid some notices. Part of MDL-6854

  • Loading branch information...
1 parent 10f36d6 commit 1db1336bd4c56e5530724051243f7045815c10cc stronk7 committed Oct 5, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/utfdbmigrate.php
View
@@ -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)]) {

0 comments on commit 1db1336

Please sign in to comment.