| @@ 441-447 (lines=7) @@ | ||
| 438 | $maxscore = $row['mymaxscore']; |
|
| 439 | } else { |
|
| 440 | if ($row['item_type'] == 'sco') { |
|
| 441 | if (!empty($row['myviewmaxscore']) && $row['myviewmaxscore'] > 0) { |
|
| 442 | $maxscore = $row['myviewmaxscore']; |
|
| 443 | } elseif ($row['myviewmaxscore'] === '') { |
|
| 444 | $maxscore = 0; |
|
| 445 | } else { |
|
| 446 | $maxscore = $row['mymaxscore']; |
|
| 447 | } |
|
| 448 | } else { |
|
| 449 | $maxscore = $row['mymaxscore']; |
|
| 450 | } |
|
| @@ 692-698 (lines=7) @@ | ||
| 689 | ||
| 690 | switch ($row['item_type']) { |
|
| 691 | case 'sco': |
|
| 692 | if (!empty($row['myviewmaxscore']) and $row['myviewmaxscore'] > 0) { |
|
| 693 | $maxscore = $row['myviewmaxscore']; |
|
| 694 | } elseif ($row['myviewmaxscore'] === '') { |
|
| 695 | $maxscore = 0; |
|
| 696 | } else { |
|
| 697 | $maxscore = $row['mymaxscore']; |
|
| 698 | } |
|
| 699 | break; |
|
| 700 | case 'quiz': |
|
| 701 | // Get score and total time from last attempt of a exercise en lp. |
|