Added check if Constant CIS_LEHRVERANSTALTUNG_ANWESENHEIT_ANZEIGEN is

available at all
This commit is contained in:
Andreas Österreicher
2024-11-22 08:46:42 +01:00
parent 16cfb0a3eb
commit fa3d36e99e
+2 -2
View File
@@ -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
}
?>
</tr>
</table>
</table>