# HG changeset patch # User Nathan Phillip Brink # Date 2011-03-22 19:30:21 # Node ID 0a851eb741f7596f97f9f52b7dacdf034cd25c81 # Parent e633a5f890a5bb706f97b4a7a36302a8665cf4d4 Use an index more reliable than a section's possibly absent synonym when building a list of sections in a schedule permutation, fixes issues with cedarville's chapel. diff --git a/inc/class.schedule.php b/inc/class.schedule.php --- a/inc/class.schedule.php +++ b/inc/class.schedule.php @@ -530,11 +530,11 @@ class Schedule . "\n"; /* for the ``Registration Codes'' dialogue: */ - if (empty($permutations_courses[$section->getSynonym()])) + if (empty($permutations_courses[$j])) { $singleton_course = new Course($course->getName()); $singleton_course->section_add($section); - $permutation_courses[$section->getSynonym()] = $singleton_course->to_json_array(); + $permutation_courses[$j] = $singleton_course->to_json_array(); } $filled = TRUE;