forked from GNUsocial/gnu-social
fix missing cur in Event
This commit is contained in:
parent
c1d4186c98
commit
57dee164ca
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user