[FIX] PHP Notice undeclared variable
This commit is contained in:
parent
8f4c5cc570
commit
6a5376eaec
@ -42,9 +42,6 @@ $iCurrentPoolShareRate = $statistics->getCurrentShareRate();
|
|||||||
// Active workers
|
// Active workers
|
||||||
if (!$iCurrentActiveWorkers = $worker->getCountAllActiveWorkers()) $iCurrentActiveWorkers = 0;
|
if (!$iCurrentActiveWorkers = $worker->getCountAllActiveWorkers()) $iCurrentActiveWorkers = 0;
|
||||||
|
|
||||||
// Fetch Last 5 notifications
|
|
||||||
$iLastNotifications = $notification->getNofifications($_SESSION['USERDATA']['id'], 5);
|
|
||||||
|
|
||||||
// Some settings to propagate to template
|
// 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_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;
|
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
|
// We don't want these session infos cached
|
||||||
if (@$_SESSION['USERDATA']['id']) {
|
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'] = $_SESSION['USERDATA']['id'] ? $user->getUserData($_SESSION['USERDATA']['id']) : array();
|
||||||
$aGlobal['userdata']['balance'] = $transaction->getBalance($_SESSION['USERDATA']['id']);
|
$aGlobal['userdata']['balance'] = $transaction->getBalance($_SESSION['USERDATA']['id']);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user