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

blubber: activate navigation only if it is present, fixes #943

Closes #943
parent 8b2c2deb
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,9 @@ class MessengerController extends PluginController ...@@ -14,7 +14,9 @@ class MessengerController extends PluginController
{ {
PageLayout::setTitle(_("Blubber")); PageLayout::setTitle(_("Blubber"));
Navigation::activateItem("/course/blubber"); if (Navigation::hasItem('/course/blubber')) {
Navigation::activateItem("/course/blubber");
}
$this->threads = BlubberThread::findByContext(Context::get()->id, true, Context::getType()); $this->threads = BlubberThread::findByContext(Context::get()->id, true, Context::getType());
......
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