]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/DiscoverPoCo.php
all endpoints are now working
[friendica.git] / src / Worker / DiscoverPoCo.php
index bf1c2a64a718806c5626354993c5b900ff975b6e..e6fc8391ffa044d686c59f1b47e84dfcd125b7f7 100644 (file)
@@ -216,7 +216,7 @@ class DiscoverPoCo
                $x = Network::fetchUrl(get_server()."/lsearch?p=1&n=500&search=".urlencode($search));
                $j = json_decode($x);
 
-               if (count($j->results)) {
+               if (!empty($j->results)) {
                        foreach ($j->results as $jj) {
                                // Check if the contact already exists
                                $exists = q("SELECT `id`, `last_contact`, `last_failure`, `updated` FROM `gcontact` WHERE `nurl` = '%s'", normalise_link($jj->url));