]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If there's no Happening, we can't use the RSVP.
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 5 Jan 2016 14:00:34 +0000 (15:00 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 5 Jan 2016 14:00:34 +0000 (15:00 +0100)
plugins/Event/classes/RSVP.php

index 5c74bfee4f2e2a552f48f8faacd8690323d9ce48..90c9d25a8d74010fa318a6662a9b85a71e8dd7c6 100644 (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);