forked from GNUsocial/gnu-social
Started fiddling with CancelRSVP but more must be done
Remember to make event_uri be the selector for CancelRSVPForm and preferrably even merge it into RSVPForm!
This commit is contained in:
@@ -49,7 +49,7 @@ class CancelRSVPForm extends Form
|
||||
parent::__construct($out);
|
||||
if (!isset($formOpts['rsvp'])) {
|
||||
throw new ServerException('You must set the "rsvp" form option for RSVPForm.');
|
||||
} elseif (!$formOpts['rsvp'] instanceof Happening) {
|
||||
} elseif (!$formOpts['rsvp'] instanceof RSVP) {
|
||||
throw new ServerException('The "rsvp" form option for RSVPForm must be an RSVP object.');
|
||||
}
|
||||
$this->rsvp = $formOpts['rsvp'];
|
||||
|
Reference in New Issue
Block a user