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/subscriberspeopletagcloudsection.php | |
parent | a86a0e91a5acb5ea894a3d066f9adf3b1ef305ae (diff) | |
parent | 19a21947046062fc0cc313b23ae7418d317def89 (diff) |
Merge branch '0.7.x' into cometplugin
Diffstat (limited to 'lib/subscriberspeopletagcloudsection.php')
-rw-r--r-- | lib/subscriberspeopletagcloudsection.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/subscriberspeopletagcloudsection.php b/lib/subscriberspeopletagcloudsection.php index 23011efdd..4dafbc1c7 100644 --- a/lib/subscriberspeopletagcloudsection.php +++ b/lib/subscriberspeopletagcloudsection.php @@ -53,8 +53,9 @@ class SubscribersPeopleTagCloudSection extends SubPeopleTagCloudSection return common_local_url('subscribers', array('nickname' => $nickname, 'tag' => $tag)); } - function query() { - return 'select tag, count(tag) as weight from subscription left join profile_tag on subscriber=tagged and subscribed=tagger where subscribed=%d and subscriber != subscribed group by tag order by weight desc'; +// return 'select tag, count(tag) as weight from subscription left join profile_tag on subscriber=tagged and subscribed=tagger where subscribed=%d and subscriber != subscribed group by tag order by weight desc'; + return 'select tag, count(tag) as weight from subscription left join profile_tag on subscriber=tagged and subscribed=tagger where subscribed=%d and subscriber != subscribed and tag is not null group by tag order by weight desc'; } } + |