Only update the contact entry with uid=0

This commit is contained in:
Michael Vogel 2016-04-01 21:41:37 +02:00 committed by Roland Haeder
parent 783932000c
commit fda9a88a31
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78

View File

@ -845,7 +845,7 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
/// It should only be updated if the existing picture isn't existing anymore. /// It should only be updated if the existing picture isn't existing anymore.
if (($result['network'] != NETWORK_FEED) AND $result["addr"] AND $result["name"] AND $result["nick"]) if (($result['network'] != NETWORK_FEED) AND $result["addr"] AND $result["name"] AND $result["nick"])
q("UPDATE `contact` SET `addr` = '%s', `alias` = '%s', `name` = '%s', `nick` = '%s', q("UPDATE `contact` SET `addr` = '%s', `alias` = '%s', `name` = '%s', `nick` = '%s',
`name-date` = '%s', `uri-date` = '%s' WHERE `nurl` = '%s' AND NOT `self`", `name-date` = '%s', `uri-date` = '%s' WHERE `nurl` = '%s' AND NOT `self` AND `uid` = 0",
dbesc($result["addr"]), dbesc($result["addr"]),
dbesc($result["alias"]), dbesc($result["alias"]),
dbesc($result["name"]), dbesc($result["name"]),