[FIX] Division by 0

This commit is contained in:
Sebastian Grewe 2013-12-02 17:14:16 +01:00
parent 61d52657f1
commit 9c101e5ca0

View File

@ -45,7 +45,6 @@ if ($iTotalRoundShares > 0) {
// Round progress
$iEstShares = $statistics->getEstimatedShares($dDifficulty);
$dEstPercent = round(100 / $iEstShares * $aRoundShares['valid'], 2);
if ($iEstShares > 0 && $aRoundShares['valid'] > 0) {
$dEstPercent = round(100 / $iEstShares * $aRoundShares['valid'], 2);
} else {