  def team
    Log.add_info(request, params.inspect)

    date_s = params[:date]
    if date_s.blank?
      @date = Date.today
    else
      @date = Date.parse(date_s)
    end

    begin
      team = Team.find(params[:id])
      team_users = team.get_users_a
    rescue => evar
      Log.add_error(request, evar)
    end

    @user_schedule_hash = {}
    unless team_users.nil?
      @holidays = Schedule.get_holidays
      team_users.each do |user_id|
        @user_schedule_hash[user_id] = Schedule.get_somebody_week(@login_user, user_id, @date, @holidays)
      end
    end

    params[:display] = params[:action] + '_' + params[:id]
  end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.