diff --git a/admin/registration_list.php b/admin/registration_list.php index a30f75b..86f11be 100644 --- a/admin/registration_list.php +++ b/admin/registration_list.php @@ -48,10 +48,7 @@ case 'load_row': exit; case 'delete': - $id = intval($_GET['id']); - error_("FIXME!"); - exit; - $regid=$_GET['delete']; + $regid = intval($_GET['id']); mysql_query("DELETE FROM registrations WHERE id='$regid' AND year='".$config['FAIRYEAR']."'"); mysql_query("DELETE FROM students WHERE registrations_id='$regid' AND year='".$config['FAIRYEAR']."'"); mysql_query("DELETE FROM projects WHERE registrations_id='$regid' AND year='".$config['FAIRYEAR']."'");