diff --git a/db/db.update.116.php b/db/db.update.116.php index ff13c32..b073c6f 100644 --- a/db/db.update.116.php +++ b/db/db.update.116.php @@ -315,14 +315,17 @@ function db_update_116_post() } /* Now write back the judge ids */ + if(count($jtl)) { foreach($jtl as $id=>$new_id) $q = mysql_query("UPDATE judges_teams_link SET judges_id='$new_id' WHERE id='$id' "); - + } + if(count($jsal)) { foreach($jsal as $id=>$new_id) $q = mysql_query("UPDATE judges_specialaward_sel SET judges_id='$new_id' WHERE id='$id' "); - + } + if(count($qa)) { foreach($qa as $id=>$new_id) $q = mysql_query("UPDATE question_answers SET registrations_id='$new_id' WHERE id='$id' "); - + } } ?>