Use default value for uid parameter in Contact::getIdForURL

This commit is contained in:
Hypolite Petovan 2018-03-01 19:53:47 -05:00
parent 01c7945b7a
commit 9f21e7f34f
5 changed files with 10 additions and 10 deletions

View file

@ -384,7 +384,7 @@ function admin_page_contactblock_post(App $a)
check_form_security_token_redirectOnErr('/admin/contactblock', 'admin_contactblock');
if (x($_POST, 'page_contactblock_block')) {
$contact_id = Contact::getIdForURL($contact_url, 0);
$contact_id = Contact::getIdForURL($contact_url);
if ($contact_id) {
Contact::block($contact_id);
notice(L10n::t('The contact has been blocked from the node'));