Skip to content

Commit

Permalink
Creating and variables so we don't try to access variables that don't…
Browse files Browse the repository at this point in the history
… exist.
  • Loading branch information
JohnOLane committed Jul 12, 2024
1 parent 17e0661 commit cc5b895
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ public function render_scheduler_student_list(scheduler_student_list $studentlis
foreach ($studentlist->students as $student) {
$class = 'otherstudent';
$checkbox = '';
$checkbox2 = '';
$checkbox3 = '';
if ($studentlist->checkboxname) {
if ($student->editattended) {
//ADDED
Expand Down Expand Up @@ -629,7 +631,7 @@ public function render_scheduler_student_list(scheduler_student_list $studentlis
if ($studentlist->showgrades && $student->grade) {
$grade = $this->format_grade($studentlist->scheduler, $student->grade, true);
}
$o .= html_writer::div($checkbox .$checkbox2.$checkbox3. $picture . ' ' . $name . $studicons . ' ' . $grade, $class);
$o .= html_writer::div($checkbox . $checkbox2 . $checkbox3 . $picture . ' ' . $name . $studicons . ' ' . $grade, $class);
}

if ($editable) {
Expand Down

0 comments on commit cc5b895

Please sign in to comment.