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

Uploadlib.php - PHP Notice - Undefined variable: notice in /lib/uploadlib.php on line 570

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.7
    • Fix Version/s: STABLE backlog
    • Component/s: Libraries
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      While running a test of Clam AV with an eicar file I came across the following PHP notice:

      Undefined variable: notice in /home/arborrow/workspace/19stable/lib/uploadlib.php on line 570

      It looks like it wants $notice to be initialized so I added an initialization of the variable at the beginning of the function which seems to resolve the issue.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: