Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-121

Duplicate get_current_group($course->id); on line 1396 of lib.php

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.8.2
    • None
    • Patch: Gradebook Plus
    • None
    • MOODLE_18_STABLE

    Description

      On line 1396 and 1398 same action get_current_group($course->id) is run.

      1395 /// Check to see if groups are being used in this course
      1396 $currentgroup = get_current_group($course->id);
      1397
      1398 if ($currentgroup = get_current_group($course->id) && groupmode($course) != 0) {

      Possibly replace 1398 with
      if ($currentgroup && groupmode($course) != 0) {

      Attachments

        Activity

          People

            aborrow Anthony Borrow
            rudd_j James Rudd
            Wen Hao Chuang Wen Hao Chuang
            Anthony Borrow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: