[FIX] PHP Notice on missing $aRoundShares

Fixes #941 once merged.
This commit is contained in:
Sebastian Grewe 2013-12-10 16:23:54 +01:00
parent 724f2d633e
commit b2df4c9d9f

View File

@ -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 {