Update TagCloudWidget.php

BUG: Fixes [Notice] Undefined variable: popularity.
This commit is contained in:
Ryan McLaren 2014-03-04 14:49:40 -04:00
parent 80a6f7d44f
commit ef4d84290d
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)