diff --git a/classes/Notice.php b/classes/Notice.php index a813db99b3..97193dbb34 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1513,7 +1513,9 @@ class Notice extends Managed_DataObject if ($this->repeat_of) { $repeated = Notice::staticGet('id', $this->repeat_of); - $act->objects[] = $repeated->asActivity($cur); + if (!empty($repeated)) { + $act->objects[] = $repeated->asActivity($cur); + } } else { $act->objects[] = ActivityObject::fromNotice($this); }