Skip to content

Commit

Permalink
Avoid some notices. Part of MDL-6854
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 5, 2006
1 parent 10f36d6 commit 1db1336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/utfdbmigrate.php
Expand Up @@ -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)]) {
Expand Down

0 comments on commit 1db1336

Please sign in to comment.