Skip to content
Snippets Groups Projects
Commit 9665c51f authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

prevent warning, fixes #2190

Closes #2190

Merge request studip/studip!1414
parent 64887e7a
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment