X-Git-Url: http://nitlanguage.org diff --git a/contrib/opportunity/src/opportunity_controller.nit b/contrib/opportunity/src/opportunity_controller.nit index f52f07d..26a4ef6 100644 --- a/contrib/opportunity/src/opportunity_controller.nit +++ b/contrib/opportunity/src/opportunity_controller.nit @@ -16,7 +16,6 @@ module opportunity_controller import nitcorn -import sha1 import templates import opportunity_model @@ -136,7 +135,6 @@ class OpportunityRESTAction redef fun answer(request, uri) do print "Received REST request from {uri}" - var get = request.get_args var req = uri.split("/") if req.has("people") then return (new OpportunityPeopleREST).answer(request, uri) @@ -199,9 +197,9 @@ class OpportunityMeetupREST if args.has("new_pers") then var name = request.string_arg("persname") var m_id = request.string_arg("meetup_id") - var ans = request.string_arg("answers").split("&") - if name == null or m_id == null then return bad_req - print ans + var ans_str = request.string_arg("answers") + if name == null or m_id == null or ans_str == null then return bad_req + var ans = ans_str.split("&") var ansmap = new HashMap[Int, Int] for i in ans do var mp = i.split("=")