Add the uri-id if missing
This commit is contained in:
parent
08ead52433
commit
bca9069b22
|
@ -1153,6 +1153,10 @@ class PostUpdate
|
||||||
|
|
||||||
while ($contact = DBA::fetch($contacts)) {
|
while ($contact = DBA::fetch($contacts)) {
|
||||||
$id = $contact['id'];
|
$id = $contact['id'];
|
||||||
|
if (is_null($contact['uri-id'])) {
|
||||||
|
$contact['uri-id'] = ItemURI::getIdByURI($contact['url']);
|
||||||
|
DBA::update('contact', ['uri-id' => $contact['uri-id']], ['id' => $contact['id']]);
|
||||||
|
}
|
||||||
Contact::setAccountUser($contact['id'], $contact['uid'], $contact['uri-id'], $contact['url']);
|
Contact::setAccountUser($contact['id'], $contact['uid'], $contact['uri-id'], $contact['url']);
|
||||||
++$rows;
|
++$rows;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user