aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/contentmodules.php
diff options
context:
space:
mode:
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,
]);
}