From 6a5376eaecfe5798a49347b3c3a591f787ea1959 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sat, 1 Mar 2014 13:40:10 +0100 Subject: [PATCH] [FIX] PHP Notice undeclared variable --- public/include/smarty_globals.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index c9438a00..0942f489 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -42,9 +42,6 @@ $iCurrentPoolShareRate = $statistics->getCurrentShareRate(); // Active workers if (!$iCurrentActiveWorkers = $worker->getCountAllActiveWorkers()) $iCurrentActiveWorkers = 0; -// Fetch Last 5 notifications -$iLastNotifications = $notification->getNofifications($_SESSION['USERDATA']['id'], 5); - // Some settings to propagate to template if (! $statistics_ajax_refresh_interval = $setting->getValue('statistics_ajax_refresh_interval')) $statistics_ajax_refresh_interval = 10; if (! $statistics_ajax_long_refresh_interval = $setting->getValue('statistics_ajax_long_refresh_interval')) $statistics_ajax_long_refresh_interval = 10; @@ -132,6 +129,9 @@ $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); + $aGlobal['userdata'] = $_SESSION['USERDATA']['id'] ? $user->getUserData($_SESSION['USERDATA']['id']) : array(); $aGlobal['userdata']['balance'] = $transaction->getBalance($_SESSION['USERDATA']['id']);