diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index 0942f489..0f8fc351 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -56,7 +56,6 @@ $aGlobal = array( 'hashrate' => $iCurrentPoolHashrate, 'nethashrate' => $dNetworkHashrate, 'sharerate' => $iCurrentPoolShareRate, - 'lastnotifications' => $iLastNotifications, 'workers' => $iCurrentActiveWorkers, 'roundshares' => $aRoundShares, 'fees' => $config['fees'], @@ -130,7 +129,8 @@ $aGlobal['acl']['chat']['page'] = $setting->getValue('acl_chat_page', 2); // We don't want these session infos cached if (@$_SESSION['USERDATA']['id']) { // Fetch Last 5 notifications - $iLastNotifications = $notification->getNofifications($_SESSION['USERDATA']['id'], 5); + $aLastNotifications = $notification->getNofifications($_SESSION['USERDATA']['id'], 5); + $aGlobal['userdata']['lastnotifications'] = $aLastNotifications; $aGlobal['userdata'] = $_SESSION['USERDATA']['id'] ? $user->getUserData($_SESSION['USERDATA']['id']) : array(); $aGlobal['userdata']['balance'] = $transaction->getBalance($_SESSION['USERDATA']['id']); diff --git a/public/templates/bootstrap/global/header.tpl b/public/templates/bootstrap/global/header.tpl index d8502ecc..a8ed08c5 100644 --- a/public/templates/bootstrap/global/header.tpl +++ b/public/templates/bootstrap/global/header.tpl @@ -11,7 +11,7 @@