diff --git a/classes/Notice.php b/classes/Notice.php index 60958c9e6a..81343e8a3a 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1585,8 +1585,10 @@ class Notice extends Managed_DataObject if (!empty($this->repeat_of)) { $repeat = Notice::staticGet('id', $this->repeat_of); - $ctx->forwardID = $repeat->uri; - $ctx->forwardUrl = $repeat->bestUrl(); + if (!empty($repeat)) { + $ctx->forwardID = $repeat->uri; + $ctx->forwardUrl = $repeat->bestUrl(); + } } $act->context = $ctx;