Small bugfix for the keyword bug in the gcontact table
This commit is contained in:
parent
5d35974c19
commit
922186bdd1
|
@ -1422,6 +1422,14 @@ function update_gcontact($contact) {
|
||||||
unset($fields["url"]);
|
unset($fields["url"]);
|
||||||
unset($fields["updated"]);
|
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
|
// assign all unassigned fields from the database entry
|
||||||
foreach ($fields AS $field => $data)
|
foreach ($fields AS $field => $data)
|
||||||
if (!isset($contact[$field]) OR ($contact[$field] == ""))
|
if (!isset($contact[$field]) OR ($contact[$field] == ""))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user