X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftagcloudsection.php;h=f82a0dd153189955507406de90cdd2b4f5b709b2;hb=164123278767f953bc053d24829b54605d419afe;hp=24a3bd98af96bf6c2baac39b53630217efe06a50;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index 24a3bd98af..f82a0dd153 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) {