]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix missing cur in Event
authorEvan Prodromou <evan@status.net>
Tue, 29 Mar 2011 02:50:29 +0000 (22:50 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 29 Mar 2011 02:50:29 +0000 (22:50 -0400)
plugins/Event/showevent.php
plugins/Event/showrsvp.php

index 1d4ec49205073c02fca5f9614b654b3d3e8d8fb1..93ce6dd68bd08456fddd57476cc1dc779e82bed4 100644 (file)
@@ -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 {
index 0f13ca82acdc400638cb68c9219868ba902ad276..3b7db6788ad47d5df8715cd405ca15e1744744ff 100644 (file)
@@ -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 {