Some more checks that the gcontact table contains valid data

This commit is contained in:
Michael Vogel 2016-04-20 07:00:55 +02:00
parent 1dd73dce80
commit 28f97845ca
3 changed files with 24 additions and 4 deletions

View file

@ -1147,7 +1147,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag, $netwo
if (!$r) {
$probed = probe_url($name);
if (isset($probed["url"])) {
if ($result['network'] != NETWORK_PHANTOM) {
update_gcontact($probed);
$r = q("SELECT `url`, `name`, `nick`, `network`, `alias`, `notify` FROM `gcontact` WHERE `nurl` = '%s' LIMIT 1",
dbesc(normalise_link($probed["url"])));