mirror of
https://github.com/friendica/friendica
synced 2025-05-09 22:24:09 +02:00
Removed notices that revealed themselfes over night ... (#5645)
* Removed notices that revealed themselfes over night ... * And more notices removed that occured over night * One more .. * Some more notices of the day ...
This commit is contained in:
parent
5a171c0afd
commit
54aee2aaa7
10 changed files with 43 additions and 22 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue