Permalink
Browse files

blocks/quiz_results: MDL-21284 - dont strip leading zeros from idnumbers

Or make assumptions its an integer as many external systems are not and to
be of copy and paste use to teachers it should match
  • Loading branch information...
1 parent 695ba14 commit 7348068be879be252f3f3ed7094037a41bdc7d9d @danpoltawski danpoltawski committed Feb 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/quiz_results/block_quiz_results.php
@@ -337,7 +337,7 @@ function get_content() {
foreach($best as $userid => $gradeid) {
switch($nameformat) {
case B_QUIZRESULTS_NAME_FORMAT_ID:
- $thisname = $course->student.' '.intval($users[$userid]->idnumber);
+ $thisname = $course->student.' '.$users[$userid]->idnumber;
break;
case B_QUIZRESULTS_NAME_FORMAT_ANON:
$thisname = $course->student;

0 comments on commit 7348068

Please sign in to comment.