Show (None) on no tag cloud results
This commit is contained in:
parent
7cd275b982
commit
8112c04c3d
|
@ -53,6 +53,7 @@ class TagCloudSection extends Section
|
||||||
$tags = $this->getTags();
|
$tags = $this->getTags();
|
||||||
|
|
||||||
if (!$tags) {
|
if (!$tags) {
|
||||||
|
$this->out->element('p', null, _('None'));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +67,11 @@ class TagCloudSection extends Section
|
||||||
$sum += $tags->weight;
|
$sum += $tags->weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($cnt == 0) {
|
||||||
|
$this->out->element('p', null, _('(None)'));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
ksort($tw);
|
ksort($tw);
|
||||||
|
|
||||||
$this->out->elementStart('ul', 'tags xoxo tag-cloud');
|
$this->out->elementStart('ul', 'tags xoxo tag-cloud');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user