global_prefs); prefs_global_parse_form($new_prefs); $prefs->$venue = $new_prefs; $retval = global_prefs_update($user, $prefs); } else { $prefs = prefs_parse_project($user->project_prefs); prefs_project_parse_form($new_prefs); prefs_resource_parse_form($new_prefs); $prefs->$venue = $new_prefs; $retval = project_prefs_update($user, $prefs); } if ($retval) { Header("Location: prefs.php?subset=$subset"); } else { db_error_page(); } ?>