# HG changeset patch # User Nathan Phillip Brink # Date 2011-02-04 00:14:41 # Node ID 5b75ed3f375454b15925f4e11f0ad755b9b14b8e # Parent 704d07f27acf624ea98a14e3371c2177602aa44c Properly parse meeting types in calvin's crawler so that labs are 'lab' and not 'lab '. diff --git a/school.d/calvin.crawl.inc b/school.d/calvin.crawl.inc --- a/school.d/calvin.crawl.inc +++ b/school.d/calvin.crawl.inc @@ -319,7 +319,7 @@ function calvin_crawl(Semester $semester $date_start = $meeting_info_matches[1]; $date_end = $meeting_info_matches[2]; /* e.g., 'Lecture', 'Practicum' */ - $meeting_type = strtolower($meeting_info_matches[3]); + $meeting_type = strtolower(trim($meeting_info_matches[3])); $days = school_crawl_days_format(explode(', ', $meeting_info_matches[5])); $time_start = school_crawl_time_format(strptime($meeting_info_matches[6], '%I:%M%p'));