From 694781d190fba09437a37983f077d0381a56050b Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 16 Oct 2009 21:25:25 +0000 Subject: Finished standardizing seconday views. git-svn-id: http://code.elgg.org/elgg/trunk@3559 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/ical/export/entity.php | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'views/ical/export/entity.php') diff --git a/views/ical/export/entity.php b/views/ical/export/entity.php index cac1f17ba..6d8a9d655 100644 --- a/views/ical/export/entity.php +++ b/views/ical/export/entity.php @@ -1,33 +1,33 @@ getCalendarStartTime()) && - ($entity->getCalendarEndTime()) - ) - { -?> +$entity = $vars['entity']; + +if ( + ($entity instanceof Notable) && + ($entity->getCalendarStartTime()) && + ($entity->getCalendarEndTime()) +) +{ +?> BEGIN:VEVENT DTSTAMP:getTimeCreated()); ?> DTSTART:getCalendarStartTime()); ?> DTEND:getCalendarEndTime()); ?> SUMMARY:title; ?> LAST-MODIFIED:getTimeUpdated()); ?> -END:VEVENT - if ( - + ) \ No newline at end of file -- cgit v1.2.3