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;