aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/output/tagcloud.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/default/output/tagcloud.php b/views/default/output/tagcloud.php
index a41ec20c3..bb4600b47 100644
--- a/views/default/output/tagcloud.php
+++ b/views/default/output/tagcloud.php
@@ -40,7 +40,8 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) {
if (!empty($cloud)) {
$cloud .= ", ";
}
- $size = round((log($tag->total) / log($max)) * 100) + 30;
+ // protecting against division by zero warnings
+ $size = round((log($tag->total) / log($max + .0001)) * 100) + 30;
if ($size < 60) {
$size = 60;
}