X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fsocgraph.php;h=bd5b1817f0605006edd4cb0a471c7755aabca482;hb=922186bdd1a09ddc45b346e46aef4762f9b64283;hp=e07e0d3533fe20caae1339a071c44e7bc3c1e136;hpb=5d35974c19b50c98695c57cc1ad9195a36e7c396;p=friendica.git diff --git a/include/socgraph.php b/include/socgraph.php index e07e0d3533..bd5b1817f0 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -1422,6 +1422,14 @@ function update_gcontact($contact) { unset($fields["url"]); unset($fields["updated"]); + // Bugfix: We had an error in the storing of keywords which lead to the "0" + // This value is still transmitted via poco. + if ($contact["keywords"] == "0") + unset($contact["keywords"]); + + if ($r[0]["keywords"] == "0") + $r[0]["keywords"] = ""; + // assign all unassigned fields from the database entry foreach ($fields AS $field => $data) if (!isset($contact[$field]) OR ($contact[$field] == ""))