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

php error notice on Activities -> Quizzes page when logged in as guest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.1, 1.8.2, 1.8.3, 1.8.4
    • Fix Version/s: 1.8.6
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      Bug
      When logged in as guest, going to Activities -> Quizzes page triggers this php error notice:
      Notice: Undefined variable: showing in C:\moodle\www\moodle18dev\moodle\mod\quiz\index.php on line 100

      Diagnostic
      Variable $showing not initialized.
      This has been corrected in moodle 1.9, line 56: $showing = 'scores'; // default

      Suggested fix:
      Please backport the initializing of this variable to 1.8.

      Joseph

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            rezeau Joseph Rézeau
            Tester:
            Petr Skoda
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jul/08