From fd30568af78099ced019342167d1cb3a4a66b300 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 12 Mar 2014 11:03:37 +0100 Subject: [PATCH] [CLEANUP] In-line with rest of account pages --- public/include/pages/account/earnings.inc.php | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/public/include/pages/account/earnings.inc.php b/public/include/pages/account/earnings.inc.php index bf2d3566..852bd531 100644 --- a/public/include/pages/account/earnings.inc.php +++ b/public/include/pages/account/earnings.inc.php @@ -1,23 +1,20 @@ isAuthenticated()) { - header("HTTP/1.1 404 Page not found"); - die("404 Page not found"); -} - -if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { - $iLimit = 30; - $debug->append('No cached version available, fetching from backend', 3); - if (!$setting->getValue('disable_transactionsummary')) { - $aTransactionSummary = $transaction->getTransactionSummary($_SESSION['USERDATA']['id']); - $aTransactionSummaryByTime = $transaction->getTransactionTypebyTime($_SESSION['USERDATA']['id']); - $smarty->assign('SUMMARY', $aTransactionSummary); - $smarty->assign('BYTIME', $aTransactionSummaryByTime); + if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { + $iLimit = 30; + $debug->append('No cached version available, fetching from backend', 3); + if (!$setting->getValue('disable_transactionsummary')) { + $aTransactionSummary = $transaction->getTransactionSummary($_SESSION['USERDATA']['id']); + $aTransactionSummaryByTime = $transaction->getTransactionTypebyTime($_SESSION['USERDATA']['id']); + $smarty->assign('SUMMARY', $aTransactionSummary); + $smarty->assign('BYTIME', $aTransactionSummaryByTime); + } + } else { + $debug->append('Using cached page', 3); } -} else { - $debug->append('Using cached page', 3); } $smarty->assign('CONTENT', 'default.tpl');