X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftagcloudsection.php;h=268540cf9be4a97193035ea82d9919acd06ce6b7;hb=76babcb430e6fae9254541f5a26483e576dfe5f3;hp=24a3bd98af96bf6c2baac39b53630217efe06a50;hpb=8884a5255fb90fda67b63fa0d4252d77176337e5;p=quix0rs-gnu-social.git diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index 24a3bd98af..268540cf9b 100644 --- a/lib/tagcloudsection.php +++ b/lib/tagcloudsection.php @@ -50,6 +50,7 @@ class TagCloudSection extends Section function showContent() { $tags = $this->getTags(); + //* NOISY-DEBUG: */ common_debug('[' . __METHOD__ . ':' . __LINE__ . '] tags[]=' . gettype($tags)); if (!$tags) { // TRANS: Content displayed in a tag cloud section if there are no tags. @@ -63,8 +64,10 @@ class TagCloudSection extends Section $sum = 0; while ($tags->fetch() && ++$cnt <= TAGS_PER_SECTION) { - $tw[$tags->tag] = $tags->weight; - $sum += $tags->weight; + if ($tags->isCurrentProfileInScope()) { + $tw[$tags->tag] = $tags->weight; + $sum += $tags->weight; + } } if ($cnt == 0) {