diff --git a/db/upgrade.php b/db/upgrade.php index d565d81..4a4a8cb 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -59,6 +59,9 @@ function mpgame_db_copy_string_to_int( $table, $from, $to) { if ($rec->$to == $val) { continue; } + if ($val == 0) { + continue; + } $updrec = new stdClass; $updrec->id = $rec->id; $updrec->$to = $val;