fix missing cur in Event

This commit is contained in:
Evan Prodromou 2011-03-28 22:50:29 -04:00
parent c1d4186c98
commit 57dee164ca
2 changed files with 4 additions and 0 deletions

View 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 {

View 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 {