aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-06-18 14:50:59 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-06-18 14:50:59 +0000
commit3087b012948b301473f149b2ba70daa810833410 (patch)
tree18135be65bbc28a97b1f0bf11756e6e067f6ad1e
parent5bb2d3c4fc8d1497e108d06e97575ea1877a0fd0 (diff)
fixes #4324
Closes #4324 Merge request studip/studip!3124
-rw-r--r--templates/layouts/base.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/layouts/base.php b/templates/layouts/base.php
index d7fc1f1..1f2ac32 100644
--- a/templates/layouts/base.php
+++ b/templates/layouts/base.php
@@ -55,7 +55,7 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
'OPENGRAPH_ENABLE' => Config::get()->OPENGRAPH_ENABLE,
'COURSEWARE_CERTIFICATES_ENABLE' => Config::get()->COURSEWARE_CERTIFICATES_ENABLE,
'PERSONAL_NOTIFICATIONS_AUDIO_DEACTIVATED' =>
- (bool) User::findCurrent()->getConfiguration()->PERSONAL_NOTIFICATIONS_AUDIO_DEACTIVATED,
+ (bool) User::findCurrent()?->getConfiguration()->PERSONAL_NOTIFICATIONS_AUDIO_DEACTIVATED,
]) ?>,
}
</script>
@@ -97,7 +97,7 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
<system-notification-manager
id="system-notifications"
:notifications='<?= htmlReady(json_encode(PageLayout::getMessages())) ?>'
- placement="<?= User::findCurrent()->getConfiguration()->SYSTEM_NOTIFICATIONS_PLACEMENT ?>"></system-notification-manager>
+ placement="<?= User::findCurrent()?->getConfiguration()->SYSTEM_NOTIFICATIONS_PLACEMENT ?? 'topcenter' ?>"></system-notification-manager>
</main>
<!-- End main content -->