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

Review calculated formula preg analysis

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: STABLE backlog
    • Component/s: Questions
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      Some regs[] parameters related to the formula analysis should be tested with isset() or isempty() before being used.
      as in line 2292
      if ($regs[4] || strlen($regs[3])==0) {
      to be changed to
      if ((isset($regs[4])&& $regs[4]) || strlen($regs[3])==0) {

      Occasionnaly there is a notify message.

        Attachments

          Activity

            People

            Assignee:
            ppichet Pierre Pichet
            Reporter:
            ppichet Pierre Pichet
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: