diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-05-01 08:00:41 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-05-01 08:00:41 -0700 |
commit | 1a61a171cdb39444e2c0fbed7cf3a92e0ec271df (patch) | |
tree | edf2eb852163f3806d813ac6292ab67be1aed40f /lib/subscriberspeopleselftagcloudsection.php | |
parent | a86a0e91a5acb5ea894a3d066f9adf3b1ef305ae (diff) | |
parent | 19a21947046062fc0cc313b23ae7418d317def89 (diff) |
Merge branch '0.7.x' into cometplugin
Diffstat (limited to 'lib/subscriberspeopleselftagcloudsection.php')
-rw-r--r-- | lib/subscriberspeopleselftagcloudsection.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/subscriberspeopleselftagcloudsection.php b/lib/subscriberspeopleselftagcloudsection.php index b5a39c6de..115241a53 100644 --- a/lib/subscriberspeopleselftagcloudsection.php +++ b/lib/subscriberspeopleselftagcloudsection.php @@ -49,6 +49,14 @@ class SubscribersPeopleSelfTagCloudSection extends SubPeopleTagCloudSection } function query() { - return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscriber where subscribed=%d and subscribed != subscriber and tagger = tagged group by tag order by weight desc'; +// return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscriber where subscribed=%d and subscribed != subscriber and tagger = tagged group by tag order by weight desc'; + + + return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscriber where subscribed=%d and subscribed != subscriber and tagger = tagged and tag is not null group by tag order by weight desc'; + +// return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscribed where subscriber=%d and subscribed != subscriber and tagger = tagged and tag is not null group by tag order by weight desc'; + + } } + |