Merge pull request #115 from IOTI/patch-1

Update TagCloudWidget.php
This commit is contained in:
Damian Mooyman 2014-03-05 09:11:03 +13:00
commit d2ab260ecb
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ if(class_exists('Widget')) {
// Find position of $count in the selected range, adjusted for bucket range used
if($maxCount == $minCount) {
$popularities = $offset;
$popularity = $offset;
} else {
$popularity = round(
($count-$minCount) / ($maxCount-$minCount) * ($numsizes-1)