aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-02-17 16:24:54 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-02-17 16:24:54 +0000
commit9665c51f2daf9dca5cf0c8cf6268871b254e3060 (patch)
tree481653b1c745b6448dda5201b6b9adf5de9bd66c
parent64887e7a9f8874de012f4298e6f9c45ae38aefc5 (diff)
prevent warning, fixes #2190
Closes #2190 Merge request studip/studip!1414
-rw-r--r--app/controllers/admission/courseset.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admission/courseset.php b/app/controllers/admission/courseset.php
index 7d73de4..c75aea9 100644
--- a/app/controllers/admission/courseset.php
+++ b/app/controllers/admission/courseset.php
@@ -86,7 +86,7 @@ class Admission_CoursesetController extends AuthenticatedController
$filter['rule_types'] = array_keys($this->current_rule_types);
$this->myInstitutes = CoursesetModel::getInstitutes($filter);
if (!$this->current_institut_id) {
- if ($this->myInstitutes['all']['count'] < 100) {
+ if (!isset($this->myInstitutes['all']['count']) || $this->myInstitutes['all']['count'] < 100) {
$this->current_institut_id = 'all';
} else {
list($this->current_institut_id) = reset($this->myInstitutes);