X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_contact.php;h=c6a49a417fe055f870183c885aa085df1cdee782;hb=8e6f676719c027c6288b8ffa5ec6842c899c62dd;hp=8eeb9facf1b81f7c2d83f7a0f4345d0ef32d4f5b;hpb=2e05dac7dae0a3d028b442a2d5afbd4176a32e99;p=friendica.git diff --git a/mod/update_contact.php b/mod/update_contact.php index 8eeb9facf1..c6a49a417f 100644 --- a/mod/update_contact.php +++ b/mod/update_contact.php @@ -1,6 +1,6 @@ get(1)) && (!empty($_GET['force']) || !DI::pConfig()->get(local_user(), 'system', 'no_auto_update'))) { + if (!empty(DI::args()->get(1)) && (!empty($_GET['force']) || !DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'no_auto_update'))) { $contact = Contact::getById(DI::args()->get(1), ['id', 'deleted']); if (DBA::isResult($contact) && empty($contact['deleted'])) { DI::page()['aside'] = '';