From: Mikael Nordfeldth Date: Tue, 5 Jan 2016 14:00:34 +0000 (+0100) Subject: If there's no Happening, we can't use the RSVP. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a75778b299e6ca2903fb51c0765be4dcb4f42e6;p=quix0rs-gnu-social.git If there's no Happening, we can't use the RSVP. --- diff --git a/plugins/Event/classes/RSVP.php b/plugins/Event/classes/RSVP.php index 5c74bfee4f..90c9d25a8d 100644 --- a/plugins/Event/classes/RSVP.php +++ b/plugins/Event/classes/RSVP.php @@ -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);