Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Fixed some points of failure in behat tests #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion block_course_overview_campus.php
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ public function get_content() {
}

// Output course link.
if ($coc_config->firstrowcoursename == 2) {
if (isset($coc_config->firstrowcoursename) && $coc_config->firstrowcoursename == 2) {
echo $OUTPUT->heading(html_writer::link(new moodle_url('/course/view.php', array('id' => $c->id)), $c->shortname.$metainfo, $attributes), 3);
}
else {
Expand Down
3 changes: 3 additions & 0 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ function block_course_overview_campus_get_overviews($courses, $skip) {
*/
function block_course_overview_campus_check_term_config() {
$coc_config = get_config('block_course_overview_campus');
if (!isset($coc_config->termmode)) {
return false;
}

if ($coc_config->termmode == 1) {
return true;
Expand Down