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
Watch spacing conventions: if (...) {
Avoid tabs (also in our conventions): you need to setup your editor to use 4 spaces instead of tabs.