Don't store unknown networks

This commit is contained in:
Michael Vogel 2016-04-19 20:39:12 +02:00 committed by Roland Haeder
parent 0f96e34e06
commit 8396164afd
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
1 changed files with 3 additions and 0 deletions

View File

@ -1387,6 +1387,9 @@ function get_gcontact_id($contact) {
$gcontact_id = 0;
if ($contact["network"] == NETWORK_PHANTOM)
return false;
if ($contact["network"] == NETWORK_STATUSNET)
$contact["network"] = NETWORK_OSTATUS;