Merge pull request #7487 from MrPetovan/task/7473-trending-tags

Fix trending tags variable name mistakes in Model\Term
This commit is contained in:
Tobias Diekershoff 2019-08-07 06:44:37 +02:00 committed by GitHub
commit 48b1e172b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

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