only show messages if covid udf is defined

This commit is contained in:
Harald Bamberger
2021-11-02 18:00:41 +01:00
parent 811b59ef1b
commit 8d4a79f9b9
+1 -1
View File
@@ -212,7 +212,7 @@ $covidhelper = new CovidHelper();
if($covid_content!='')
$covid_content = "<table border='0' cellspacing='0'><tr><td><h3>".$p->t('anwesenheitsliste/covidstatuslisten')."</h3></td></tr>".$covid_content."</table>";
else
$covid_content = $p->t('anwesenheitsliste/keineStudentenVorhanden');
$covid_content = ($covidhelper->isUdfDefined()) ? $p->t('anwesenheitsliste/keineStudentenVorhanden') : '';
if($aw_content!='')
$aw_content = "<table border='0' cellspacing='0'><tr><td><h3>".$p->t('anwesenheitsliste/anwesenheitslisten')."</h3></td></tr>".$aw_content."</table>";