Merge pull request #942 from TheSerapher/issue-941
[FIX] PHP Notice on missing $aRoundShares
This commit is contained in:
commit
312f21378b
@ -43,6 +43,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
||||
|
||||
// Round progress
|
||||
$iEstShares = $statistics->getEstimatedShares($dDifficulty);
|
||||
$aRoundShares = $statistics->getRoundShares();
|
||||
if ($iEstShares > 0 && $aRoundShares['valid'] > 0) {
|
||||
$dEstPercent = round(100 / $iEstShares * $aRoundShares['valid'], 2);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user