# HG changeset patch # User Nathan Phillip Brink # Date 2010-10-24 01:55:19 # Node ID 89bb2a4a52353aa6ec074743f9a28a0455db672e # Parent 89613e14b2e87ec85109653e04e090a766a6acad Don't display ``'' and ``unknown prof'' for schedules saved by old versions of slate_permutate. diff --git a/class.section.php b/class.section.php --- a/class.section.php +++ b/class.section.php @@ -227,8 +227,11 @@ class Section if ($have_day) $days .= $daymap[$day]; + /* the old format had a ->prof but initialied it to ``unknown prof'' */ + $this->prof = ''; + $this->meetings = array(); - $this->meeting_add(new SectionMeeting($days, $this->start, $this->tend, '', 'lecture')); + $this->meeting_add(new SectionMeeting($days, $this->start, $this->tend, '', 'lecture')); /* * if we're reserialized in the future, make sure we don't do this same upgrade procedure again ;-).