wrap use of repeated element in existence check
This commit is contained in:
parent
6ce8134471
commit
4f86e05d03
@ -1381,9 +1381,11 @@ class Notice extends Memcached_DataObject
|
|||||||
|
|
||||||
if (!empty($this->repeat_of)) {
|
if (!empty($this->repeat_of)) {
|
||||||
$repeat = Notice::staticGet('id', $this->repeat_of);
|
$repeat = Notice::staticGet('id', $this->repeat_of);
|
||||||
|
if (!empty($repeat)) {
|
||||||
$ctx->forwardID = $repeat->uri;
|
$ctx->forwardID = $repeat->uri;
|
||||||
$ctx->forwardUrl = $repeat->bestUrl();
|
$ctx->forwardUrl = $repeat->bestUrl();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$act->context = $ctx;
|
$act->context = $ctx;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user