MDL-25974 fix access to activities when role switched in hidden course and some coding style strict comparison fixes
MDL-25974 fix access to activities when role switched in hidden course and some coding style strict comparison fixes

The problem with strict comparison of numerical values fails badly if one is int and the other is string, moodle core apis do not guarantee return types much.

dilawar/moodle