Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
tweak(Calendar/Attender): add another isset() check
Browse files Browse the repository at this point in the history
because of:
Warning: Illegal offset type in isset or empty
  • Loading branch information
pschuele committed Mar 14, 2022
1 parent 7b49635 commit 440c2e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tine20/Calendar/Model/Attender.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,9 @@ public static function resolveAttendee($eventAttendees, $resolveDisplayContainer
if ($attender->user_id instanceof Tinebase_Record_Interface) {
// already resolved
continue;
} elseif (isset(self::$_resolvedAttendeesCache[$attender->user_type][$attender->user_id])){
} elseif (isset(self::$_resolvedAttendeesCache[$attender->user_type])
&& isset(self::$_resolvedAttendeesCache[$attender->user_type][$attender->user_id])
){
// already in cache
$attender->user_id = self::$_resolvedAttendeesCache[$attender->user_type][$attender->user_id];
} else {
Expand Down

0 comments on commit 440c2e0

Please sign in to comment.