Commit 31a0e011 authored by Lückemeyer's avatar Lückemeyer
Browse files

changed competency array index access

parent 51c41667
Pipeline #8864 passed with stage
No preview for this file type
......@@ -209,7 +209,7 @@ class ViewSubmissionUtils {
$showncompetencies = explode(";", $summary->successfultestcompetencies);
$overallcompetencies = explode(";", $summary->overalltestcompetencies);
for ($index=1, $size=count($overallcompetencies); $index<=$size; $index++) {
for ($index=0, $size=count($overallcompetencies); $index<$size; $index++) {
$comp=$overallcompetencies[$index];
$shown=$showncompetencies[$index];
// If the competency was actually assessed by the assignment and tests, add a row in the table.
......@@ -221,8 +221,8 @@ class ViewSubmissionUtils {
$tmp = "";
$tmp .= html_writer::tag("td",
floatval($shown)/floatval ($comp) . "%
(" . $shown . " / " . $comp . ")",
// floatval($shown)/floatval ($comp) . "% " .
"(" . $shown . " / " . $comp . ")",
$resultrowattributes);
$body .= html_writer::tag("tr", $tmp, $resultrowattributes);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment