Merge pull request #1570 from MPOS/zero-payouts

[FIX] Skip prop payouts with 0 valid shares
This commit is contained in:
Sebastian Grewe 2014-01-24 07:30:12 -08:00
commit 854867d4c5

View File

@ -72,6 +72,10 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
// Loop through all accounts that have found shares for this round
foreach ($aAccountShares as $key => $aData) {
// Skip users with only invalids
if ($aData['valid'] == 0) {
continue;
}
// Skip entries that have no account ID, user deleted?
if (empty($aData['id'])) {
$log->logInfo('User ' . $aData['username'] . ' does not have an associated account, skipping');