From 2de73d86a5e49efaa6830cf8062475637a7c07b6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 8 Apr 2011 14:20:01 +0000 Subject: [PATCH] fixed not working creation of new series, calendar_bo::read() always returned some event, even if no id given --- calendar/inc/class.calendar_bo.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index e35763b409..cc129ad892 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -845,6 +845,8 @@ class calendar_bo */ function read($ids,$date=null,$ignore_acl=False,$date_format='ts',$clear_private_infos_users=null) { + if (!$ids) return false; + if ($date) $date = $this->date2ts($date); $return = null;