mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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:
parent
1d4c5b61e2
commit
cd7a6e6de0
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user