[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:
parent
a586cc36ab
commit
c6e2e062de
@ -72,6 +72,10 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
|
|||||||
|
|
||||||
// Loop through all accounts that have found shares for this round
|
// Loop through all accounts that have found shares for this round
|
||||||
foreach ($aAccountShares as $key => $aData) {
|
foreach ($aAccountShares as $key => $aData) {
|
||||||
|
// Skip users with only invalids
|
||||||
|
if ($aData['valid'] == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// Skip entries that have no account ID, user deleted?
|
// Skip entries that have no account ID, user deleted?
|
||||||
if (empty($aData['id'])) {
|
if (empty($aData['id'])) {
|
||||||
$log->logInfo('User ' . $aData['username'] . ' does not have an associated account, skipping');
|
$log->logInfo('User ' . $aData['username'] . ' does not have an associated account, skipping');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user