[FIX] Dashboard API on non-PPS system

This commit is contained in:
Sebastian Grewe 2013-10-27 02:45:43 +01:00
parent 7a79c66ba8
commit 3a0e2a9a13

View File

@ -41,6 +41,7 @@ $aRoundShares = $statistics->getRoundShares();
if ($config['payout_system'] != 'pps') {
$aEstimates = $statistics->getUserEstimates($aRoundShares, $aUserRoundShares, $user->getUserDonatePercent($user_id), $user->getUserNoFee($user_id));
$dUnpaidShares = 0;
} else {
$dUnpaidShares = $statistics->getUserUnpaidPPSShares($user_id, $setting->getValue('pps_last_share_id'));
if ($config['pps']['reward']['type'] == 'blockavg' && $block->getBlockCount() > 0) {