Fix php8 warnings in agenda module (#31834)

* Update index.php

Fix: avoid php8 warnings in the agenda module

* Update index.php

Fix: php8 warnings in agenda module
This commit is contained in:
Expresion 2024-11-15 14:13:46 +01:00 committed by GitHub
parent 1d4c5b61e2
commit cd7a6e6de0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1384,9 +1384,9 @@ if (count($listofextcals)) {
$event->datep = $datestart + $usertime;
$event->datef = $dateend + $usertime;
if ($icalevent['SUMMARY']) {
if (isset($icalevent['SUMMARY']) && $icalevent['SUMMARY']) {
$event->label = dol_string_nohtmltag($icalevent['SUMMARY']);
} elseif ($icalevent['DESCRIPTION']) {
} elseif (isset($icalevent['DESCRIPTION']) && $icalevent['DESCRIPTION']) {
$event->label = dol_nl2br(dol_string_nohtmltag($icalevent['DESCRIPTION']), 1);
} else {
$event->label = $langs->trans("ExtSiteNoLabel");