fix missing cur in Event
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user