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
This commit is contained in:
Dan Poltawski
2010-02-24 08:51:16 +00:00
parent 695ba14064
commit 7348068be8
+1 -1
View File
@@ -337,7 +337,7 @@ class block_quiz_results extends block_base {
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;