If there's no Happening, we can't use the RSVP.

This commit is contained in:
Mikael Nordfeldth 2016-01-05 15:00:34 +01:00
parent 3471213d1c
commit 9a75778b29

View File

@ -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);