summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-23 20:59:27 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-23 20:59:27 -0500
commitbb5437bd2d4ed4208030fd4f05b7548a69574444 (patch)
tree68ed2861343e19040460017fd16319d777ba35b8 /classes/Profile.php
parent82696b150e6365f2dc40f2626b327d124a6e02a0 (diff)
don't get self-tags
darcs-hash:20081124015927-84dde-525625c0341e62d3939879430743d0a976d0d8d2.gz
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php5
1 files changed, 4 insertions, 1 deletions
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;