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

PHP warnings when browsing database activity with no fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      In 1.8, when a database activity was created without any fields, the student view would only show the message "No entries in database". There was nothing else on that page except the database tabs and the footer.

      In 1.9, in addition to the message, we have navigation elements (form inputs for filtering the database entries) and 2 PHP warning messages that indicate an attempt to foreach() on an empty array.

        Attachments

          Activity

            People

            • Assignee:
              nicolasconnault Nicolas Connault
              Reporter:
              nicolasconnault Nicolas Connault
              Tester:
              Séverin Terrier
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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