From 50c4731d208f5a1c92b88e1f070ef88aa22a1860 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 8 Apr 2011 12:14:05 -0400 Subject: [PATCH] show event as deleted --- plugins/Event/EventPlugin.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/Event/EventPlugin.php b/plugins/Event/EventPlugin.php index 528c855bda..7775bdf120 100644 --- a/plugins/Event/EventPlugin.php +++ b/plugins/Event/EventPlugin.php @@ -326,6 +326,10 @@ class EventPlugin extends MicroappPlugin { $rsvp = RSVP::fromNotice($notice); + if (empty($rsvp)) { + $out->element('p', null, _('Deleted.')); + } + $out->elementStart('div', 'rsvp'); $out->raw($rsvp->asHTML()); $out->elementEnd('div'); @@ -337,8 +341,9 @@ class EventPlugin extends MicroappPlugin $profile = $notice->getProfile(); $event = Happening::fromNotice($notice); - assert(!empty($event)); - assert(!empty($profile)); + if (empty($event)) { + $out->element('p', null, _('Deleted.')); + } $out->elementStart('div', 'vevent event'); // VEVENT IN