fix problem with dupe tags in profile
This commit is contained in:
parent
d92beda526
commit
0369946b6d
|
@ -45,6 +45,7 @@ class Profile_tag extends Memcached_DataObject
|
||||||
|
|
||||||
static function setTags($tagger, $tagged, $newtags) {
|
static function setTags($tagger, $tagged, $newtags) {
|
||||||
|
|
||||||
|
$newtags = array_unique($newtags);
|
||||||
$oldtags = Profile_tag::getTags($tagger, $tagged);
|
$oldtags = Profile_tag::getTags($tagger, $tagged);
|
||||||
|
|
||||||
# Delete stuff that's old that not in new
|
# Delete stuff that's old that not in new
|
||||||
|
|
Loading…
Reference in New Issue
Block a user