mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Update TagCloudWidget.php
BUG: Fixes [Notice] Undefined variable: popularity.
This commit is contained in:
parent
80a6f7d44f
commit
ef4d84290d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user