Skip to content

Commit

Permalink
Minor coding style correction
Browse files Browse the repository at this point in the history
  • Loading branch information
gmanaud committed Jun 6, 2024
1 parent 3457f28 commit bd620b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/task/run_teacher_visit_report_task.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public function execute() {
$rescountotherteachervisit = array_count_values($countotherteachervisit);

// If result is empty, no teacher has visited course.
if (!isset($rescountteachervisit['visited_teacher']) && !isset($rescountotherteachervisit['visited_teacher'])) {
if (!isset($rescountteachervisit['visited_teacher'])
&& !isset($rescountotherteachervisit['visited_teacher'])) {
$data = new \stdClass();
$data->course = $course->id;
$data->report = 'no_visit_teacher';
Expand Down

0 comments on commit bd620b3

Please sign in to comment.