From 5bea81f18f9b6bb93a78678a171a814e0e26b045 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 4 May 2010 15:47:53 +0000 Subject: [PATCH] Handle if event deleted flag gets turned into a string (Postgres) --- calendar/inc/class.calendar_bo.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index 01d15d523b..3227b77076 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -799,6 +799,11 @@ class calendar_bo $alarm['time'] = $this->date2usertime($alarm['time'],$date_format); } } + + // Check for deleted flag + if(!is_numeric($event['deleted']) && $event['deleted'] == 'f') { + $event['deleted'] = false; + } } }