If there's no Happening, we can't use the RSVP.
This commit is contained in:
parent
3471213d1c
commit
9a75778b29
@ -114,6 +114,7 @@ class RSVP extends Managed_DataObject
|
||||
while ($rsvp->fetch()) {
|
||||
$event = Happening::getKV('id', $rsvp->event_id);
|
||||
if (!$event instanceof Happening) {
|
||||
$rsvp->delete();
|
||||
continue;
|
||||
}
|
||||
$orig = clone($rsvp);
|
||||
|
Loading…
Reference in New Issue
Block a user