From 74cfb14bf419f24515af48415ccb9c4fb2b9ef86 Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 23 Feb 2011 17:35:50 +0000 Subject: [PATCH] minor touch-up: don't need to load the emergency contact's id when loading it as part of the user object. --- user.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.inc.php b/user.inc.php index f1d22b5..433bf66 100644 --- a/user.inc.php +++ b/user.inc.php @@ -95,7 +95,7 @@ function user_load($users_id, $accounts_id = false) // not sure if this is the best place to add it, but if the user is a student, add their emergency contacts if(array_key_exists('participant', $u['roles'])){ $u['emergencycontacts'] = array(); - $fields = array('id', 'firstname', 'lastname', 'relation', 'phone1', 'phone2', 'phone3', 'phone4', 'email'); + $fields = array('firstname', 'lastname', 'relation', 'phone1', 'phone2', 'phone3', 'phone4', 'email'); $q = mysql_query("SELECT " . implode(',', $fields) . " FROM emergencycontact WHERE users_id = $users_id"); while($row = mysql_fetch_assoc($q)){ $u['emergencycontacts'][] = $row;