]> git.mxchange.org Git - friendica-addons.git/commitdiff
[twitter] Fix PHP 7.2 notice in twitter_fetchparentposts
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 16 Jun 2018 00:53:50 +0000 (20:53 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 16 Jun 2018 00:53:50 +0000 (20:53 -0400)
twitter/twitter.php

index a38fd72bb06d9dc3d1bd35979b826d2ed518c526..d9f6f20fc0962a9607b8d28b4ba4e67fe8957bb4 100644 (file)
@@ -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;
                }