This causes a PHP error when you do a fresh Entrada installation and have no courses. The courses_my_courses() function returns false, implode() throws an error because it's false and not an array.