From 9e73131493c901a10e048ca4e3b8f7e4905c3bb7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 15 Jun 2018 20:53:50 -0400 Subject: [PATCH] [twitter] Fix PHP 7.2 notice in twitter_fetchparentposts --- twitter/twitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5