summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
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;