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

changed competency array index access

1 merge request!1Coding style and recommendations
Showing with 3 additions and 3 deletions
+3 -3
No preview for this file type
...@@ -209,7 +209,7 @@ class ViewSubmissionUtils { ...@@ -209,7 +209,7 @@ class ViewSubmissionUtils {
$showncompetencies = explode(";", $summary->successfultestcompetencies); $showncompetencies = explode(";", $summary->successfultestcompetencies);
$overallcompetencies = explode(";", $summary->overalltestcompetencies); $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]; $comp=$overallcompetencies[$index];
$shown=$showncompetencies[$index]; $shown=$showncompetencies[$index];
// If the competency was actually assessed by the assignment and tests, add a row in the table. // If the competency was actually assessed by the assignment and tests, add a row in the table.
...@@ -221,8 +221,8 @@ class ViewSubmissionUtils { ...@@ -221,8 +221,8 @@ class ViewSubmissionUtils {
$tmp = ""; $tmp = "";
$tmp .= html_writer::tag("td", $tmp .= html_writer::tag("td",
floatval($shown)/floatval ($comp) . "% // floatval($shown)/floatval ($comp) . "% " .
(" . $shown . " / " . $comp . ")", "(" . $shown . " / " . $comp . ")",
$resultrowattributes); $resultrowattributes);
$body .= html_writer::tag("tr", $tmp, $resultrowattributes); $body .= html_writer::tag("tr", $tmp, $resultrowattributes);
......
Supports Markdown
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