diff --git a/classes/Notice.php b/classes/Notice.php index d513695192..c45f915711 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1381,8 +1381,10 @@ class Notice extends Memcached_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;