| @@ 416-422 (lines=7) @@ | ||
| 413 | $maxscore = $row['mymaxscore']; |
|
| 414 | } else { |
|
| 415 | if ($row['item_type'] == 'sco') { |
|
| 416 | if (!empty($row['myviewmaxscore']) && $row['myviewmaxscore'] > 0) { |
|
| 417 | $maxscore = $row['myviewmaxscore']; |
|
| 418 | } elseif ($row['myviewmaxscore'] === '') { |
|
| 419 | $maxscore = 0; |
|
| 420 | } else { |
|
| 421 | $maxscore = $row['mymaxscore']; |
|
| 422 | } |
|
| 423 | } else { |
|
| 424 | $maxscore = $row['mymaxscore']; |
|
| 425 | } |
|
| @@ 654-660 (lines=7) @@ | ||
| 651 | $maxscore = $row['mymaxscore']; |
|
| 652 | } else { |
|
| 653 | if ($row['item_type'] == 'sco') { |
|
| 654 | if (!empty($row['myviewmaxscore']) and $row['myviewmaxscore'] > 0) { |
|
| 655 | $maxscore = $row['myviewmaxscore']; |
|
| 656 | } elseif ($row['myviewmaxscore'] === '') { |
|
| 657 | $maxscore = 0; |
|
| 658 | } else { |
|
| 659 | $maxscore = $row['mymaxscore']; |
|
| 660 | } |
|
| 661 | } else { |
|
| 662 | if ($row['item_type'] == 'quiz') { |
|
| 663 | // Get score and total time from last attempt of a exercise en lp. |
|