diff --git a/course/lib.php b/course/lib.php index 5a6328ae2c6..19d00d7ded4 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1390,7 +1390,14 @@ function print_courses($category, $width="100%") { print_course($course, $width); } } else { - print_heading(get_string("nocoursesyet")); + print_heading(get_string('nocoursesyet')); + if (iscreator()) { + $options = array(); + $options['category'] = $category->id; + echo '
'; + print_single_button($CFG->wwwroot.'/course/edit.php', $options, get_string('addnewcourse')); + echo '
'; + } } }