Merge pull request #16754 from frederic34/patch-13

fix php8 warnings
This commit is contained in:
Laurent Destailleur 2021-03-17 16:55:54 +01:00 committed by GitHub
commit 1e402f9ea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1216,7 +1216,7 @@ if (count($listofextcals)) {
// LOW = 0 to 4
// MEDIUM = 5
// HIGH = 6 to 9
if ($icalevent['PRIORITY']) {
if (!empty($icalevent['PRIORITY'])) {
$event->priority = $icalevent['PRIORITY'];
}
@ -1237,7 +1237,7 @@ if (count($listofextcals)) {
// X-MICROSOFT-CDO-BUSYSTATUS:OOF + TRANSP:OPAQUE => Away from the office / off-site
}
if ($icalevent['LOCATION']) {
if (!empty($icalevent['LOCATION'])) {
$event->location = $icalevent['LOCATION'];
}