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

Invalid arguement passed to foreach() on line 383

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5
    • Component/s: Choice
    • Labels:
      None
    • Environment:
      Development: Windows XP with XAMPP (PHP 5.2.5)
      Test: Ubuntu (as a VMWare Virtual Server) (PHP5.2.6)
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      1. Switch Developer debugging & error msgs on.
      2. Open course with a Choice module
      3. Click choice module.
      4. If no enrolled users, then get the following warning: Warning: Invalid argument supplied for foreach() in /mnt/clsm-004093share/medical/resource_centre/moodle/mod/choice/lib.php on line 383

      Patch developed, tested & attached.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/09