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

Undefined offset in moodlelib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      To repeat, create a lesson or quiz and add a HTML block. Edit the block and you see these:

      Notice: Undefined offset: 4 in /Users/USERNAME/Sites/moodle/lib/moodlelib.php on line 7090
      Notice: Undefined offset: 4 in /Users/USERNAME/Sites/moodle/lib/moodlelib.php on line 7097
      Notice: Undefined offset: 4 in /Users/USERNAME/Sites/moodle/lib/moodlelib.php on line 7100
      Notice: Undefined offset: 4 in /Users/USERNAME/Sites/moodle/lib/moodlelib.php on line 7101

      This is in the method build_navigation().

      I think that the culprit is the structure of $morenavlinks passed to print_header() which is a method of the page_generic_activity class defined in lib/pagelib.php.

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            bushido Mark Nielsen
            Tester:
            Nicolas Martignoni
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08