[FIX] Skip prop payouts with 0 valid shares

* [FIXED] Do not create 0 amount payout transactions for users w/o
  valid shares

Fixes #1569 once merged.
This commit is contained in:
Sebastian Grewe 2014-01-24 16:19:10 +01:00
parent a586cc36ab
commit c6e2e062de

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');