mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-26 07:13:09 +01:00
fix PHP 8.0 TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given
This commit is contained in:
parent
fd3cd58fab
commit
9b32bbe3f8
@ -638,7 +638,7 @@ class calendar_boupdate extends calendar_bo
|
|||||||
$msg_is_response = $msg_type == MSG_REJECTED || $msg_type == MSG_ACCEPTED || $msg_type == MSG_TENTATIVE || $msg_type == MSG_DELEGATED;
|
$msg_is_response = $msg_type == MSG_REJECTED || $msg_type == MSG_ACCEPTED || $msg_type == MSG_TENTATIVE || $msg_type == MSG_DELEGATED;
|
||||||
|
|
||||||
// Check if user is not participating, and does not want notifications
|
// Check if user is not participating, and does not want notifications
|
||||||
if($msg_is_response && !$part_prefs['calendar']['receive_not_participating'] && !array_key_exists($userid, $old_event['participants']))
|
if ($msg_is_response && !$part_prefs['calendar']['receive_not_participating'] && !array_key_exists($userid, $old_event['participants'] ?? []))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user