diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-15 23:13:46 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-15 23:13:46 -0400 |
commit | af03429704d55a408f92579d316f9693e63f38c4 (patch) | |
tree | fc793736d01192d5a439ad68be33ccf50e470455 | |
parent | f3409f4e7009016b94918bfe7779558426d3769e (diff) |
more array munging
darcs-hash:20080716031346-84dde-2aa160254fd80537ba89df2b39b4560c044d1bab.gz
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/util.php b/lib/util.php index e8ca52716..ce8637884 100644 --- a/lib/util.php +++ b/lib/util.php @@ -875,10 +875,7 @@ function common_save_replies($notice) { return true; } # XXX: is there another way to make an array copy? - $names = array_merge($match[1], array()); - if ($tname) { - array_unshift($names, $tname); - } + $names = ($tname) ? array_unique(array_merge($match[1], array($tname))) : $match[1]; $sender = Profile::staticGet($notice->profile_id); # store replied only for first @ (what user/notice what the reply directed, # we assume first @ is it) |