Moodle

Forum lib notice

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8
  • Fix Version/s: 1.8.4, 1.9
  • Component/s: Forum
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

Forum module is throwing these PHP notices:

Notice: Undefined variable: cm in /trunk/mod/forum/lib.php on line 1768
Notice: Trying to get property of non-object in /intel/trunk/mod/forum/lib.php on line 1768

See attached patch for proposed fix.

Activity

Hide
David Herney Bernal added a comment -

The patch for proposed fix works fine.

I think that this patch must be included in moodle 1.8+ release

Thanks

Show
David Herney Bernal added a comment - The patch for proposed fix works fine. I think that this patch must be included in moodle 1.8+ release Thanks
Hide
Mark Nielsen added a comment -

Added Yu and Petr as watchers. Maybe one of them can apply the patch or delegate it to someone else. Cheers!

Show
Mark Nielsen added a comment - Added Yu and Petr as watchers. Maybe one of them can apply the patch or delegate it to someone else. Cheers!
Hide
Petr Škoda (skodak) added a comment -

I suppose this is about forum_get_discussions() which was already fixed,
closing and thanks for the report

Show
Petr Škoda (skodak) added a comment - I suppose this is about forum_get_discussions() which was already fixed, closing and thanks for the report

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: