From b73e46b8cdac8849932fe16270a7fe10329463d1 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 28 Apr 2017 16:08:59 +1200 Subject: [PATCH] fix some codechecker warnings. --- attendance.php | 2 +- sessions.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/attendance.php b/attendance.php index 1bd0891..d34d732 100644 --- a/attendance.php +++ b/attendance.php @@ -67,7 +67,7 @@ if ($mform->is_cancelled()) { $url = new moodle_url('/mod/attendance/view.php', array('id' => $cm->id)); redirect($url); } else if ($fromform = $mform->get_data()) { - // check if password required and if set correctly. + // Check if password required and if set correctly. if (!empty($attforsession->studentpassword) && $attforsession->studentpassword !== $fromform->studentpassword) { diff --git a/sessions.php b/sessions.php index f805106..6208b40 100644 --- a/sessions.php +++ b/sessions.php @@ -300,7 +300,9 @@ function construct_sessions_data_for_add($formdata) { $sess->timemodified = $now; $sess->studentscanmark = 0; $sess->studentpassword = ''; - if (isset($formdata->studentscanmark) && !empty($formdata->studentscanmark)) { // Students will be able to mark their own attendance. + + if (isset($formdata->studentscanmark) && !empty($formdata->studentscanmark)) { + // Students will be able to mark their own attendance. $sess->studentscanmark = 1; if (!empty($formdata->randompassword)) { $sess->studentpassword = random_string(5); -- 2.11.0