Merge pull request #3572 from deantownsley/contactfix_basic
Only delete uid=0 entries when cleaning up extra public entries
This commit is contained in:
commit
0092cdef44
1 changed files with 1 additions and 1 deletions
|
@ -637,7 +637,7 @@ function get_contact($url, $uid = 0, $no_update = false) {
|
|||
}
|
||||
|
||||
if (count($contacts) > 1 && $uid == 0 && $contact_id != 0 && $url != "") {
|
||||
q("DELETE FROM `contact` WHERE `nurl` = '%s' AND `id` != %d AND NOT `self`",
|
||||
q("DELETE FROM `contact` WHERE `nurl` = '%s' AND `uid` = 0 AND `id` != %d AND NOT `self`",
|
||||
dbesc(normalise_link($url)),
|
||||
intval($contact_id));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue