maltes
committed
on 20 Feb 06
Made sure that you return -2 if the application group_id is empty