Moodle

Invalid arguement passed to foreach() on line 383

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Hide
Dan Marsden added a comment -

thanks for the report - I've committed a fix into 19_STABLE and HEAD

Show
Dan Marsden added a comment - thanks for the report - I've committed a fix into 19_STABLE and HEAD
Hide
Jerome Mouneyrac added a comment -

It's fixed.
Thank you for the report and fix.

Show
Jerome Mouneyrac added a comment - It's fixed. Thank you for the report and fix.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: