[FIX] Dashboard API on non-PPS system
This commit is contained in:
parent
7a79c66ba8
commit
3a0e2a9a13
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user