From 57dee164caf920be321004097b84b1fa2822650c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 28 Mar 2011 22:50:29 -0400 Subject: [PATCH] fix missing cur in Event --- plugins/Event/showevent.php | 2 ++ plugins/Event/showrsvp.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/Event/showevent.php b/plugins/Event/showevent.php index 1d4ec49205..93ce6dd68b 100644 --- a/plugins/Event/showevent.php +++ b/plugins/Event/showevent.php @@ -77,6 +77,8 @@ class ShoweventAction extends ShownoticeAction throw new ClientException(_('No such event.'), 404); } + $cur = common_current_user(); + if (!empty($cur)) { $curProfile = $cur->getProfile(); } else { diff --git a/plugins/Event/showrsvp.php b/plugins/Event/showrsvp.php index 0f13ca82ac..3b7db6788a 100644 --- a/plugins/Event/showrsvp.php +++ b/plugins/Event/showrsvp.php @@ -83,6 +83,8 @@ class ShowrsvpAction extends ShownoticeAction throw new ClientException(_('No such RSVP.'), 404); } + $cur = common_current_user(); + if (!empty($cur)) { $curProfile = $cur->getProfile(); } else { -- 2.39.5