Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-28014

unpropitious use of bcmod()

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.4
    • 2.0.3, 2.1
    • Feedback
    • None
    • php compiled without php5-bcmath
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_20_STABLE
    • MDL-28014_head
    • Hide

      create two questions in any feedback. One multichoice and one multichoicerated.
      do some submitts.
      Go to the analysis-page.
      If bcmod() is available so the printed bars are in different colours.
      If bcmod() isn't available so the printed bars are all the same colour.

      Show
      create two questions in any feedback. One multichoice and one multichoicerated. do some submitts. Go to the analysis-page. If bcmod() is available so the printed bars are in different colours. If bcmod() isn't available so the printed bars are all the same colour.

      There are two calls of bcmod() in item/multichoice/lib.php and item/multichoicerated/lib.php but this function isn't available on each installation.
      Better is to use the % for modulus then bcmod().
      This was just used in a very early time I started php programming .

            grabs Andreas Grabs
            grabs Andreas Grabs
            Sam Hemelryk Sam Hemelryk
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.