Fix Notice: Undefined variable: publish_at
This commit is contained in:
parent
12b5a1da7d
commit
5b19469a4c
1 changed files with 2 additions and 0 deletions
|
@ -633,6 +633,8 @@ class Feed
|
||||||
$publish_at = DateTimeFormat::utc('now + ' . $post_delay . ' second');
|
$publish_at = DateTimeFormat::utc('now + ' . $post_delay . ' second');
|
||||||
Logger::notice('Got publishing date', ['delay' => $delay, 'publish_at' => $publish_at, 'cid' => $contact['id'], 'url' => $contact['url']]);
|
Logger::notice('Got publishing date', ['delay' => $delay, 'publish_at' => $publish_at, 'cid' => $contact['id'], 'url' => $contact['url']]);
|
||||||
$post_delay += $delay;
|
$post_delay += $delay;
|
||||||
|
} else {
|
||||||
|
$publish_at = DBA::NULL_DATETIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
Worker::add(['priority' => PRIORITY_HIGH, 'delayed' => $publish_at],
|
Worker::add(['priority' => PRIORITY_HIGH, 'delayed' => $publish_at],
|
||||||
|
|
Loading…
Reference in a new issue