From: Hypolite Petovan Date: Sat, 16 Jun 2018 00:53:50 +0000 (-0400) Subject: [twitter] Fix PHP 7.2 notice in twitter_fetchparentposts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9e73131493c901a10e048ca4e3b8f7e4905c3bb7;p=friendica-addons.git [twitter] Fix PHP 7.2 notice in twitter_fetchparentposts --- diff --git a/twitter/twitter.php b/twitter/twitter.php index a38fd72b..d9f6f20f 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -1578,7 +1578,7 @@ function twitter_fetchparentposts(App $a, $uid, $post, $connection, $self, $own_ break; } - if (!count($post)) { + if (empty($post)) { logger("twitter_fetchparentposts: Can't fetch post " . $parameters->id, LOGGER_DEBUG); break; }