forked from GNUsocial/gnu-social
A section
This commit is contained in:
parent
597245ffc3
commit
a130bb9d6d
@ -76,7 +76,7 @@ class TagCloudSection extends Section
|
|||||||
|
|
||||||
$this->out->elementStart('ul', 'tags xoxo tag-cloud');
|
$this->out->elementStart('ul', 'tags xoxo tag-cloud');
|
||||||
foreach ($tw as $tag => $weight) {
|
foreach ($tw as $tag => $weight) {
|
||||||
$this->showTag($tag, $weight, $weight/$sum);
|
$this->showTag($tag, $weight, ($sum == 0) ? $weight : $weight/$sum);
|
||||||
}
|
}
|
||||||
$this->out->elementEnd('ul');
|
$this->out->elementEnd('ul');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user