diff --git a/api/entity.php b/api/entity.php index d6c409c..d34b828 100644 --- a/api/entity.php +++ b/api/entity.php @@ -207,7 +207,7 @@ unset($section['coursetitle']); // If it's online, don't bother looking up the times - if($section['type'] == "O") { + if($section['type'] == "OL") { $section['online'] = true; } else { // Look up the times the section meets diff --git a/inc/databaseConn.php b/inc/databaseConn.php index 684f651..3cad8e9 100644 --- a/inc/databaseConn.php +++ b/inc/databaseConn.php @@ -66,7 +66,7 @@ function getMeetingInfo($sectionData) { "courseParentNum" => "{$sectionData['department']}-{$sectionData['course']}", "courseId" => $sectionData['courseId'], "id" => $sectionData['id'], - "online" => $sectionData['type'] == "O", + "online" => $sectionData['type'] == "OL", "credits" => $sectionData['credits'] );