Fix wrong parameter usage in bp_groupblog_get_user_role().

Also remove unused globals and clean up the function.

Conflicts:
	bp-groupblog.php