Fixed getcourse.php and getCourses() in courseFunctions.php