]> git.mxchange.org Git - friendica.git/commitdiff
Fix Notice: Undefined variable: publish_at
authorMichael <heluecht@pirati.ca>
Mon, 30 Nov 2020 18:27:02 +0000 (18:27 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 30 Nov 2020 18:27:02 +0000 (18:27 +0000)
src/Protocol/Feed.php

index 5231107146147731ddb742bcd3f67208c68e1ab1..9302a05903bac2f48eaa7a67975194cc9521b387 100644 (file)
@@ -633,6 +633,8 @@ class Feed
                                        $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']]);
                                        $post_delay += $delay;
                                        $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']]);
                                        $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],