diff --git a/src/Model/Term.php b/src/Model/Term.php index 4e2b571ce..1de93fb05 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -82,7 +82,7 @@ class Term $limit ); - if (DBA::isResult($tags)) { + if (DBA::isResult($tagsStmt)) { $tags = DBA::toArray($tagsStmt); Cache::set('global_trending_tags', $tags, Cache::HOUR); } @@ -127,7 +127,7 @@ class Term $limit ); - if (DBA::isResult($tags)) { + if (DBA::isResult($tagsStmt)) { $tags = DBA::toArray($tagsStmt); Cache::set('local_trending_tags', $tags, Cache::HOUR); } diff --git a/view/templates/widget/trending_tags.tpl b/view/templates/widget/trending_tags.tpl index 554b4984e..a2788af65 100644 --- a/view/templates/widget/trending_tags.tpl +++ b/view/templates/widget/trending_tags.tpl @@ -2,7 +2,7 @@

{{$title}}

{{if $tags|count > 10}} @@ -10,7 +10,7 @@ {{$more}}