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

Trying to preview an empty quiz displays PHP errors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0.2
    • Quiz
    • MOODLE_20_STABLE
    • 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

            timhunt Tim Hunt
            rezeau Joseph Rézeau
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              21/Feb/11