Commit a4ad87dc authored by mabolek's avatar mabolek Committed by Thomas Löffler
Browse files

[FIX] Mixup between immutable and mutable in function calls and variables

parent acf1dee7
......@@ -80,10 +80,10 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
$immutableKarma = $this->ledgerEntryRepository->calculateImmutableKarmaTotalForUser($frontendUser);
if ($updateCacheEntry) {
$immutableKarma = $this->getMutableKarmaForUser($frontendUser, true, false);
$mutableKarma = $this->getMutableKarmaForUser($frontendUser, true, false);
$frontendUser->setKarmaImmutableValueCache($immutableKarma);
$frontendUser->setKarmaImmutableValueCache($immutableKarma);
$frontendUser->setKarmaMutableValueCache($mutableKarma);
$frontendUser->setKarmaCacheTimestamp(time());
$this->frontendUserRepository->update($frontendUser);
......@@ -111,10 +111,10 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
$mutableKarma = $this->ledgerEntryRepository->calculateMutableKarmaTotalForUser($frontendUser);
if ($updateCacheEntry) {
$mutableKarma = $this->getImmutableKarmaForUser($frontendUser, true, false);
$immutableKarma = $this->getImmutableKarmaForUser($frontendUser, true, false);
$frontendUser->setKarmaMutableValueCache($mutableKarma);
$frontendUser->setKarmaMutableValueCache($mutableKarma);
$frontendUser->setKarmaImmutableValueCache($immutableKarma);
$frontendUser->setKarmaCacheTimestamp(time());
$this->frontendUserRepository->update($frontendUser);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment