MDL-38147 made compartible with PHP 5.3
MDL-38147 removed 'enrolledonly' from coursecatlib