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