fix bug in course information's user list when multi url enabled

When multi url is enabled, users of multiple portals are listed in the course information. It seems to me it's a bug fixed with this pull request