forked from GNUsocial/gnu-social
		
	If there's no Happening, we can't use the RSVP.
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user