Merge pull request #186 from TheSerapher/issue-185

fixing missing transactions table
This commit is contained in:
Sebastian Grewe 2013-06-13 07:34:19 -07:00
commit 8c31480711

View File

@ -2,7 +2,7 @@
// Make sure we are called from index.php
if (!defined('SECURITY')) die('Hacking attempt');
if (!$user->isAuthenticated()) {
if ($user->isAuthenticated()) {
$aTransactions = $transaction->getTransactions($_SESSION['USERDATA']['id']);
if (!$aTransactions) $_SESSION['POPUP'][] = array('CONTENT' => 'Could not find any transaction', 'TYPE' => 'errormsg');
$smarty->assign('TRANSACTIONS', $aTransactions);