From cd7a6e6de03cc8cb11f4e9627ecf964dfefbb341 Mon Sep 17 00:00:00 2001 From: Expresion <67320879+Expresion@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:13:46 +0100 Subject: [PATCH] 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 --- htdocs/comm/action/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 6e23e6d0a93..6f24008c7ad 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -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");