From fa3d36e99e0e3283e216f6e1cf6e27425321b943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 22 Nov 2024 08:46:42 +0100 Subject: [PATCH] Added check if Constant CIS_LEHRVERANSTALTUNG_ANWESENHEIT_ANZEIGEN is available at all --- include/tw/cis_menu_lv.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tw/cis_menu_lv.inc.php b/include/tw/cis_menu_lv.inc.php index 6906bcc0f..1d66fa1a6 100644 --- a/include/tw/cis_menu_lv.inc.php +++ b/include/tw/cis_menu_lv.inc.php @@ -241,7 +241,7 @@ function checkZeilenUmbruch() } // Digitale Anwesenheiten - if(CIS_LEHRVERANSTALTUNG_ANWESENHEIT_ANZEIGEN && $angemeldet + if(defined('CIS_LEHRVERANSTALTUNG_ANWESENHEIT_ANZEIGEN') && CIS_LEHRVERANSTALTUNG_ANWESENHEIT_ANZEIGEN && $angemeldet && ($rechte->isBerechtigt('extension/anw_ent_admin') || $rechte->isBerechtigt('extension/anwesenheit_lektor') || $rechte->isBerechtigt('extension/anwesenheit_student') @@ -608,4 +608,4 @@ function isDirectoryEmpty($DOC_ROOT, $kurzbz, $semester, $short_short_name, $typ } ?> - \ No newline at end of file +