From: Dan Marsden Date: Fri, 28 Apr 2017 04:08:59 +0000 (+1200) Subject: fix some codechecker warnings. X-Git-Url: http://cameron1729.xyz/?a=commitdiff_plain;h=b73e46b8cdac8849932fe16270a7fe10329463d1;p=moodle-mod_attendance.git fix some codechecker warnings. --- 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);