diff --git a/calendar/edit_entry.php b/calendar/edit_entry.php index a197cb4924..d79e6cab6e 100755 --- a/calendar/edit_entry.php +++ b/calendar/edit_entry.php @@ -21,7 +21,7 @@ $cal_info = new calendar_item; if ($id > 0) { - $cal = $phpgw->calendar->getevent((int)$id); + $cal = $phpgw->calendar->getevent(intval($id)); $cal_info = $cal[0]; $can_edit = false; diff --git a/calendar/view.php b/calendar/view.php index 2b8fc7a3f4..f95ac17b12 100755 --- a/calendar/view.php +++ b/calendar/view.php @@ -37,7 +37,7 @@ // first see who has access to view this entry $is_my_event = false; - $cal = $phpgw->calendar->getevent((int)$id); + $cal = $phpgw->calendar->getevent(intval($id)); $cal_info = $cal[0];