@@ 406-412 (lines=7) @@ | ||
403 | $maxscore = $row['mymaxscore']; |
|
404 | } else { |
|
405 | if ($row['item_type'] == 'sco') { |
|
406 | if (!empty($row['myviewmaxscore']) && $row['myviewmaxscore'] > 0) { |
|
407 | $maxscore = $row['myviewmaxscore']; |
|
408 | } elseif ($row['myviewmaxscore'] === '') { |
|
409 | $maxscore = 0; |
|
410 | } else { |
|
411 | $maxscore = $row['mymaxscore']; |
|
412 | } |
|
413 | } else { |
|
414 | $maxscore = $row['mymaxscore']; |
|
415 | } |
|
@@ 644-650 (lines=7) @@ | ||
641 | $maxscore = $row['mymaxscore']; |
|
642 | } else { |
|
643 | if ($row['item_type'] == 'sco') { |
|
644 | if (!empty($row['myviewmaxscore']) and $row['myviewmaxscore'] > 0) { |
|
645 | $maxscore = $row['myviewmaxscore']; |
|
646 | } elseif ($row['myviewmaxscore'] === '') { |
|
647 | $maxscore = 0; |
|
648 | } else { |
|
649 | $maxscore = $row['mymaxscore']; |
|
650 | } |
|
651 | } else { |
|
652 | if ($row['item_type'] == 'quiz') { |
|
653 | // Get score and total time from last attempt of a exercise en lp. |