From 3aa89e8bbcd45772ead3f06ea579cac8384b6b75 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 25 Jul 2012 08:07:10 +0000 Subject: [PATCH] fix for filling up the error_log in certain conditions on activesync on an non-existent event (with of course no participants). clear_private_infos created an eventarray on those, thus subsequent errors occured and had to be handeled in ExportChangesDiff::Synchronize --- calendar/inc/class.calendar_bo.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index 72855c7781..aea491c444 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -618,6 +618,7 @@ class calendar_bo */ function clear_private_infos(&$event,$allowed_participants = array()) { + if ($event == false) return; if (!is_array($event['participants'])) error_log(__METHOD__.'('.array2string($event).', '.array2string($allowed_participants).') NO PARTICIPANTS '.function_backtrace()); $event = array(