Issue 4997: Avoid database duplicates

This commit is contained in:
Michael 2018-05-10 12:49:28 +00:00
parent 09a2c1d76b
commit 6d4f3e8ee2
2 changed files with 14 additions and 63 deletions

View file

@ -1427,7 +1427,7 @@ class PortableContact
}
foreach ($tags as $tag) {
dba::insert('gserver-tag', ['gserver-id' => $gserver['id'], 'tag' => $tag]);
dba::insert('gserver-tag', ['gserver-id' => $gserver['id'], 'tag' => $tag], true);
}
}