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

typo in lib/pagelib.php

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 1.9, 2.0
    • Libraries
    • None
    • Moodle 1.9
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE

    Description

      small typo in "page_generic_activity" class in "lib/pagelib.php" (around line 565).

      ----------------
      change this:
      ----------------
      $this->activityrecord = get_record($this->activityname, 'id', $this->id);
      if(empty($this->courserecord))

      { error('Cannot fully initialize page: invalid '.$this->activityname.' id '. $this->id); }

      ----------------
      to this:
      ----------------
      $this->activityrecord = get_record($this->activityname, 'id', $this->id);
      if(empty($this->activityrecord))

      { error('Cannot fully initialize page: invalid '.$this->activityname.' id '. $this->id); }

      i.e. change "courserecord" to "activityrecord"

      Attachments

        Activity

          People

            poltawski Dan Poltawski
            xxxxxxx Gordon Bateson
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3/Mar/08