@@ -131,13 +131,13 @@ if (!$getsections && count($term_parts)
* particular department, start displaying courses from that
* department instead of just returning that one department.
*/
if (count($json_depts) == 1)
{
$dept = $json_depts[0];
if (!empty($dept['value']))
if (is_array($dept) && !empty($dept['value']))
$dept = $dept['value'];
page::redirect('auto.php' . page::query_string(array('term' => $dept . '-') + $_GET));
}
/*
Status change: