aboutsummaryrefslogtreecommitdiff
path: root/lib/extern
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extern')
-rw-r--r--lib/extern/ExternPageCourses.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/extern/ExternPageCourses.php b/lib/extern/ExternPageCourses.php
index 0e6b461..e1868c9 100644
--- a/lib/extern/ExternPageCourses.php
+++ b/lib/extern/ExternPageCourses.php
@@ -117,7 +117,8 @@ class ExternPageCourses extends ExternPage
}
$query .= "
WHERE (`semester_courses`.`semester_id` IN (:semester_ids) OR ISNULL(`semester_id`))
- AND ISNULL(`seminare`.`parent_course`) "
+ AND ISNULL(`seminare`.`parent_course`)
+ AND `seminare`.`visible` = 1 "
. $this->getScopesSQL($params, $this->studyareas, (bool) $this->scope_kids)
. $this->getInstitutesSQL($params)
. $this->getSemtypesSQL($params)
@@ -304,7 +305,8 @@ class ExternPageCourses extends ExternPage
}
$query .= "
WHERE (`semester_courses`.`semester_id` IN (:semester_ids) OR ISNULL(`semester_id`))
- AND ISNULL(`seminare`.`parent_course`) "
+ AND ISNULL(`seminare`.`parent_course`)
+ AND `seminare`.`visible` = 1 "
. $this->getScopesSQL($params, $this->studyareas, (bool) $this->scope_kids)
. $this->getInstitutesSQL($params)
. $this->getSemtypesSQL($params)