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

@ -162,8 +162,8 @@ class PostUpdate
// Set the "author-id" and "owner-id" in the item table and add a new public contact entry if needed
foreach ($item_arr as $item) {
$author_id = Contact::getIdForURL($item["author-link"], 0);
$owner_id = Contact::getIdForURL($item["owner-link"], 0);
$author_id = Contact::getIdForURL($item["author-link"]);
$owner_id = Contact::getIdForURL($item["owner-link"]);
if ($author_id == 0)
$author_id = -1;