From ef4d84290dfc2bd5b8774bd39eda899f24f96556 Mon Sep 17 00:00:00 2001 From: Ryan McLaren Date: Tue, 4 Mar 2014 14:49:40 -0400 Subject: [PATCH] Update TagCloudWidget.php BUG: Fixes [Notice] Undefined variable: popularity. --- code/widgets/TagCloudWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/widgets/TagCloudWidget.php b/code/widgets/TagCloudWidget.php index 08eb437..a07e3d9 100644 --- a/code/widgets/TagCloudWidget.php +++ b/code/widgets/TagCloudWidget.php @@ -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)