MDL-11500 Catching empty $coursemod when viewhiddensection is false, + corrected type $coursemode => $coursemod
MDL-11500 Catching empty $coursemod when viewhiddensection is false, + corrected type $coursemode => $coursemod

dilawar/moodle