Fix trending tags variable name mistakes in Model\Term

This commit is contained in:
Hypolite Petovan 2019-08-06 20:52:54 -04:00
parent e3ce18ebcf
commit 19adb9a1a0

View File

@ -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);
}