# HG changeset patch # User Nathan Phillip Brink # Date 2011-04-10 12:54:56 # Node ID 28ca95f269834ffab841525f81aeee230f0f4938 # Parent 758f11033eb172998c11237348b0c4b6c2e99217 Fix upgrading of Section class in Section::__wakeup() where a PHP notice was issued. diff --git a/inc/class.section.php b/inc/class.section.php --- a/inc/class.section.php +++ b/inc/class.section.php @@ -283,10 +283,10 @@ class Section unset($this->start); } elseif (!empty($this->prof)) - /* Move the instructor (old $this->prof) property to our SectionMeeting children */ - foreach ($this->meetings as $meeting) { - $meeting->instructor_set($this->prof); + /* Move the instructor (old $this->prof) property to our SectionMeeting children */ + foreach ($this->meetings as $meeting) + $meeting->instructor_set($this->prof); unset($this->prof); } }