Fixes bug MDL-9520, "groups_groupids_to_groups should return groups indexed by group ID". Merged from 1.8 branch.
Fixes bug MDL-9520, "groups_groupids_to_groups should return groups indexed by group ID". Merged from 1.8 branch.

dilawar/moodle