Browse Source

Fix #279 - fix for php 5.4 compatibility.

MOODLE_31_STABLE
Dan Marsden 7 years ago
parent
commit
1c1f335a75
  1. 3
      attendance.php

3
attendance.php

@ -39,7 +39,8 @@ $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST)
// Require the user is logged in. // Require the user is logged in.
require_login($course, true, $cm); require_login($course, true, $cm);
if (empty(get_config('attendance', 'studentscanmark')) || empty($attforsession->studentscanmark)) { $canmark = get_config('attendance', 'studentscanmark');
if (empty($canmark) || empty($attforsession->studentscanmark)) {
redirect(new moodle_url('/mod/attendance/view.php', array('id' => $cm->id))); redirect(new moodle_url('/mod/attendance/view.php', array('id' => $cm->id)));
exit; exit;
} }

Loading…
Cancel
Save