From f6eee9666a1a86e47e825d1df123ec324a5e0f6b Mon Sep 17 00:00:00 2001 From: jacob Date: Thu, 18 Nov 2010 16:02:11 +0000 Subject: [PATCH] Updated to properly use the user_save function --- activities.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/activities.php b/activities.php index 06c53d7..883db6a 100644 --- a/activities.php +++ b/activities.php @@ -71,22 +71,13 @@ case 'save': $u['willing_chair'] = ($_POST['willing_chair'] == 'yes') ? 'yes' : 'no'; $u['highest_psd'] = stripslashes($_POST['highest_psd']); + $u['available_events'] = array_values($_POST['time']); user_save($u); /* if(is_array($_POST['questions'])){ questions_save_answers("judgereg",$u['id'],$_POST['questions']); } */ - // save the availability selection - mysql_query("DELETE FROM schedule_users_availability_link WHERE users_id='{$u['id']}'"); - if(is_array($_POST['time']) ) { - foreach($_POST['time'] as $idx) { - mysql_query(" - INSERT INTO schedule_users_availability_link (schedule_id, users_id) - VALUES($idx, {$u['id']}) - "); - } - } happy_("Preferences successfully saved");