Skip to content

Commit

Permalink
Fix php8 warnings in agenda module (#31834)
Browse files Browse the repository at this point in the history
* Update index.php

Fix: avoid php8 warnings in the agenda module

* Update index.php

Fix: php8 warnings in agenda module
  • Loading branch information
Expresion authored Nov 15, 2024
1 parent 1d4c5b6 commit cd7a6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/comm/action/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1384,9 +1384,9 @@
$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");
Expand Down

0 comments on commit cd7a6e6

Please sign in to comment.