From bb5437bd2d4ed4208030fd4f05b7548a69574444 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 23 Nov 2008 20:59:27 -0500 Subject: don't get self-tags darcs-hash:20081124015927-84dde-525625c0341e62d3939879430743d0a976d0d8d2.gz --- classes/Profile.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/Profile.php b/classes/Profile.php index 2d6b48217..5f762df80 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -150,7 +150,10 @@ class Profile extends Memcached_DataObject function getAllTags() { $profile_tag = new Notice_tag(); - $profile_tag->query('SELECT DISTINCT(tag) FROM profile_tag WHERE tagger = ' . $this->id); + $profile_tag->query('SELECT DISTINCT(tag) ' . + 'FROM profile_tag ' . + 'WHERE tagger = ' . $this->id . ' ' . + 'AND tagger != tagged'); $tags = array(); while ($profile_tag->fetch()) { $tags[] = $profile_tag->tag; -- cgit v1.2.3