Skip to content

Commit

Permalink
Correct options argument passed when formatting cohort.
Browse files Browse the repository at this point in the history
Fixes #12.
  • Loading branch information
paulholden committed Dec 11, 2023
1 parent 1be703d commit 3116556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/output/summary_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function format_row($row) {
public function col_cohort(\stdClass $record) {
$persistent = new persistent(0, $record);

return format_string($persistent->get_cohort()->name, true, \context_system::instance());
return format_string($persistent->get_cohort()->name, true, ['context' => \context_system::instance()]);
}

/**
Expand Down

0 comments on commit 3116556

Please sign in to comment.