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

Trying to preview an empty quiz displays PHP errors

    XMLWordPrintable

    Details

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

      Description

      Trying to preview an empty quiz displays PHP errors when trying to preview quiz just after having deleted all of its questions.

      Notice: Trying to get property of non-object in \moodle\mod\quiz\attemptlib.php on line 412
      Fatal error: Cannot use string offset as an array in \moodle\mod\quiz\attemptlib.php on line 416

      A more user-friendly message would be welcome.

        Attachments

          Activity

            People

            • Assignee:
              timhunt Tim Hunt
              Reporter:
              rezeau Joseph Rézeau
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                21/Feb/11