don't get self-tags

darcs-hash:20081124015927-84dde-525625c0341e62d3939879430743d0a976d0d8d2.gz
This commit is contained in:
Evan Prodromou 2008-11-23 20:59:27 -05:00
parent 82696b150e
commit bb5437bd2d
1 changed files with 4 additions and 1 deletions

View File

@ -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;