X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsubscriberspeopletagcloudsection.php;h=4dafbc1c7df0554dc5c80f5fbbde0939f8df649a;hb=28d02ec8cdd0278c802c8fee30acddecca9ca01f;hp=23011efdd3d3c550d4b39857b9ed9de0677b2892;hpb=00777479d55f41bbc4c22a23a01964ad7023fa17;p=quix0rs-gnu-social.git diff --git a/lib/subscriberspeopletagcloudsection.php b/lib/subscriberspeopletagcloudsection.php index 23011efdd3..4dafbc1c7d 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'; } } +