Permalink
Browse files

Merge branch 'MDL-28014_stable' of git://github.com/grabs/moodle into…

… MOODLE_20_STABLE
  • Loading branch information...
2 parents f114cff + 3fcd1d0 commit e78632643cac442014ffbb3a65aded1f659d508b Sam Hemelryk committed Jun 28, 2011
Showing with 2 additions and 10 deletions.
  1. +1 −5 mod/feedback/item/multichoice/lib.php
  2. +1 −5 mod/feedback/item/multichoicerated/lib.php
@@ -213,11 +213,7 @@ function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false
$analysedVals = $analysedItem[2];
$pixnr = 0;
foreach($analysedVals as $val) {
- if( function_exists("bcmod")) {
- $intvalue = bcmod($pixnr, 10);
- }else {
- $intvalue = 0;
- }
+ $intvalue = $pixnr % 10;
$pix = "pics/$intvalue.gif";
$pixnr++;
$pixwidth = intval($val->quotient * FEEDBACK_MAX_PIX_LENGTH);
@@ -184,11 +184,7 @@ function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false
$pixnr = 0;
$avg = 0.0;
foreach($analysedVals as $val) {
- if( function_exists("bcmod")) {
- $intvalue = bcmod($pixnr, 10);
- }else {
- $intvalue = 0;
- }
+ $intvalue = $pixnr % 10;
$pix = "pics/$intvalue.gif";
$pixnr++;
$pixwidth = intval($val->quotient * FEEDBACK_MAX_PIX_LENGTH);

0 comments on commit e786326

Please sign in to comment.