fixing notice warning when not logged in
This commit is contained in:
parent
d23d577368
commit
4c4202bc1b
@ -7,15 +7,16 @@ if (!defined('SECURITY'))
|
|||||||
// Globally available variables
|
// Globally available variables
|
||||||
$debug->append('Global smarty variables', 3);
|
$debug->append('Global smarty variables', 3);
|
||||||
|
|
||||||
|
// Defaults to get rid of PHP Notice warnings
|
||||||
|
$dDifficulty = 1;
|
||||||
|
|
||||||
// Only run these if the user is logged in
|
// Only run these if the user is logged in
|
||||||
if ($_SESSION['AUTHENTICATED']) {
|
if ($_SESSION['AUTHENTICATED']) {
|
||||||
$aRoundShares = $statistics->getRoundShares();
|
$aRoundShares = $statistics->getRoundShares();
|
||||||
if ($bitcoin->can_connect() === true){
|
if ($bitcoin->can_connect() === true)
|
||||||
$dDifficulty = $bitcoin->query('getdifficulty');
|
$dDifficulty = $bitcoin->query('getdifficulty');
|
||||||
} else {
|
|
||||||
$dDifficulty = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch some data
|
// Fetch some data
|
||||||
$iCurrentActiveWorkers = $worker->getCountAllActiveWorkers();
|
$iCurrentActiveWorkers = $worker->getCountAllActiveWorkers();
|
||||||
$iCurrentPoolHashrate = $statistics->getCurrentHashrate();
|
$iCurrentPoolHashrate = $statistics->getCurrentHashrate();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user