From a2eab86ef85d19c6237205c9f8bc46cae284e99a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 4 May 2010 21:35:06 +0000 Subject: [PATCH] Use pre-existing function to handle deleted flag --- calendar/inc/class.calendar_bo.inc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index 3227b77076..98a566ad77 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -800,10 +800,8 @@ class calendar_bo } } - // Check for deleted flag - if(!is_numeric($event['deleted']) && $event['deleted'] == 'f') { - $event['deleted'] = false; - } + // Fix deleted flag + $event['deleted'] = egw_db::from_bool($event['deleted']); } }