From 1f138e52efda05d9457c95fc4b17285c6cf4ca1e Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 21 Jan 2010 20:33:01 +0000 Subject: [PATCH] Save the file before committing --- admin/registration_list.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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']."'");