$user_view_type = $_REQUEST["user_view_type"]; } else { if ($Calendar_Settings["user_view"] == "all") { $user_view_type = "all"; } else { $user_view_type = $current_user->id; } } if (strtolower(trim($user_view_type)) == "me") { $user_view_type = $current_user->id; } if ($user_view_type == $current_user->id) { $smarty->assign('SHOW_ONLY_ME', 'true'); } $smarty->assign('USER_VIEW_TYPE', $user_view_type); $Users = $Calendar4You->GetCalendarUsersData(); $smarty->assign('CALENDAR_USERS', $Users); $smarty->assign('CURRENT_USER_ID', $current_user->id); if (isset($tool_buttons) == false) { $tool_buttons = Button_Check($currentModule); } $smarty->assign('CHECK', $tool_buttons); $calendar_arr = array(); $calendar_arr['IMAGE_PATH'] = $image_path; /* fix (for Ticket ID:2259 GA Calendar Default View not working) given by dartagnanlaf START --integrated by Minnie */ $views = array('day', 'week', 'month', 'year'); if (empty($mysel) || !in_array($mysel, $views)) { if ($current_user->activity_view == "This Year") { $mysel = 'year'; } else { if ($current_user->activity_view == "This Month") {