X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_contact.php;h=7dccb103d10fe43fea6447b75b5ff55214540ff2;hb=cfac13790bc1948697b76b9a6134b61c7bb3173b;hp=44bb4a36ab5cc273f859e362e70431065ab58915;hpb=edf9bdfa144795edb121d04eb0f40dfa6a73bea8;p=friendica.git diff --git a/mod/update_contact.php b/mod/update_contact.php index 44bb4a36ab..7dccb103d1 100644 --- a/mod/update_contact.php +++ b/mod/update_contact.php @@ -1,6 +1,6 @@ argv[1]) && (!empty($_GET['force']) || !DI::pConfig()->get(local_user(), 'system', 'no_auto_update'))) { + if (!empty(DI::args()->getArgv()[1]) && (!empty($_GET['force']) || !DI::pConfig()->get(local_user(), 'system', 'no_auto_update'))) { if (!empty($_GET['item'])) { $item = Post::selectFirst(['parent'], ['id' => $_GET['item']]); $parentid = $item['parent'] ?? 0; } else { $parentid = 0; } - $text = Contact::getConversationsHMTL($a, $a->argv[1], true, $parentid); + $text = Contact::getConversationsHMTL($a, DI::args()->getArgv()[1], true, $parentid); } else { $text = ''; }