If group mode is no groups and forced, there is no point in displaying the group events filter. Just a nice touch, fixed only in course view for now.
If group mode is no groups and forced, there is no point in displaying the
group events filter. Just a nice touch, fixed only in course view for now.

Also, minor code rewrite for clarification.

dilawar/moodle