aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/contentmodules.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-02-14 09:41:45 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-02-14 09:41:45 +0000
commit5b10cf620f58eee2d365cffb44e18c83eb722db6 (patch)
treed59a65e121da9a601181325977a431962fecd9f9 /app/controllers/course/contentmodules.php
parent10e3c80b73802f1d70f7b4b3c8ad4ef71f4799be (diff)
fixes #3562
Closes #3562 Merge request studip/studip!2444
Diffstat (limited to 'app/controllers/course/contentmodules.php')
-rw-r--r--app/controllers/course/contentmodules.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/course/contentmodules.php b/app/controllers/course/contentmodules.php
index 7a54ee1..adb3055 100644
--- a/app/controllers/course/contentmodules.php
+++ b/app/controllers/course/contentmodules.php
@@ -134,7 +134,7 @@ class Course_ContentmodulesController extends AuthenticatedController
Navigation::getItem('/course/admin')->setActive(true);
$this->render_json([
'tabs' => $template->render(),
- 'position' => $active_tool->position
+ 'position' => isset($active_tool) ? $active_tool->position : null,
]);
}