Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kirildevlion committed May 12, 2019
1 parent ebdf61c commit f65ae71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib.php
Expand Up @@ -351,7 +351,11 @@ public function course_format_options($foreditform = false) {
);

// Define display or not "attendanceinfo show/hide setting".
$attmodid = $DB->get_record('modules', array('name' => 'attendance'), 'id')->id; // Get attendance module id in system.
$attmodid = $DB->get_record('modules', array('name' => 'attendance'), 'id');
if (!empty($attmodid)){
$attmodid=$attmodid->id;
}

// Get first attedndance instance on current course.
$att = $DB->get_record('course_modules', array(
'course' => $course->id,
Expand Down

0 comments on commit f65ae71

Please sign in to comment.