Skip to content

Commit

Permalink
IOMAD: Typo in /local/report_completion/classes/tables/course_table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
turf212 committed May 11, 2023
1 parent 24775e9 commit 76312a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions local/report_completion/classes/tables/course_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ public function col_licenseallocated($row) {
$licensechart->set_labels(array(get_string('used', 'local_report_completion') . " (" . $licensesallocated . ")",
get_string('unused', 'local_report_completion') . " (" . $licensesunused . ")"));
} else {
$licenseallocated = number_format($licenseallocated / $totalusers * 100, 2);
$licenseunused = number_format($licenseunused / $totalusers * 100, 2);
$licensesallocated = number_format($licensesallocated / $totalusers * 100, 2);
$licensesunused = number_format($licensesunused / $totalusers * 100, 2);
$series = new \core\chart_series('', array($licensesallocated, $licensesunused));
$licensechart->add_series($series);
$licensechart->set_labels(array(get_string('used', 'local_report_completion') . " (" . $licensesallocated . "%)",
Expand All @@ -282,7 +282,7 @@ public function col_licenseallocated($row) {
return;
}
} else {
if (!empty($licenseallocated) || $DB->get_record('iomad_courses', array('courseid' => $row->id, 'licensed' => 1))) {
if (!empty($licensesallocated) || $DB->get_record('iomad_courses', array('courseid' => $row->id, 'licensed' => 1))) {
return get_string('used', 'local_report_completion') . " = " . ($licensesallocated - $licensesunused) . "\n" .
get_string('unused', 'local_report_completion') . " = $licensesunused\n";
} else {
Expand Down

0 comments on commit 76312a9

Please sign in to comment.