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