forked from GNUsocial/gnu-social
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()) {
|
while ($rsvp->fetch()) {
|
||||||
$event = Happening::getKV('id', $rsvp->event_id);
|
$event = Happening::getKV('id', $rsvp->event_id);
|
||||||
if (!$event instanceof Happening) {
|
if (!$event instanceof Happening) {
|
||||||
|
$rsvp->delete();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$orig = clone($rsvp);
|
$orig = clone($rsvp);
|
||||||
|
Loading…
Reference in New Issue
Block a user