X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_contact.php;h=7dccb103d10fe43fea6447b75b5ff55214540ff2;hb=b0bf4b435949e923caa5d6d52b12d364bf16ae82;hp=44bb4a36ab5cc273f859e362e70431065ab58915;hpb=dc842f4f37a5ff9cb787cac23272c38faf2ff892;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 = ''; }