From: Zach Copley Date: Fri, 4 Dec 2009 20:39:50 +0000 (+0000) Subject: Don't try to broadcast the notice if something went wrong. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eb0a5977ff7e325022d460ae3cf540f3415bd33d;p=quix0rs-gnu-social.git Don't try to broadcast the notice if something went wrong. --- diff --git a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php index d8901f47ba..b4ca12be23 100755 --- a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php +++ b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php @@ -213,7 +213,9 @@ class TwitterStatusFetcher extends ParallelizingDaemon $notice = $this->saveStatus($status, $flink); - common_broadcast_notice($notice); + if (!empty($notice)) { + common_broadcast_notice($notice); + } } // Okay, record the time we synced with Twitter for posterity