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

undefined $dependentsetting in register_dependency() in base_settings.class.php

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.1.6, 2.2.3
    • Component/s: Backup
    • Labels:

      Description

      public function register_dependency(setting_dependency $dependency) {
          if ($this->is_circular_reference($dependency->get_dependent_setting())) {
              $a = new stdclass();
              $a->alreadydependent = $this->name;
              $a->main = $dependentsetting->get_name();
              throw new base_setting_exception('setting_circular_reference', $a);
          }
          $this->dependencies[$dependency->get_dependent_setting()->get_name()] = $dependency;
          $dependency->get_dependent_setting()->register_dependent_dependency($dependency);
      }

      should be probably $dependency->get_name();

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/12