From c6e2e062decbe30c4a561ef9c5b7944533bd829e Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 24 Jan 2014 16:19:10 +0100 Subject: [PATCH] [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. --- cronjobs/proportional_payout.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cronjobs/proportional_payout.php b/cronjobs/proportional_payout.php index 0fbc80cd..e2f7ea25 100755 --- a/cronjobs/proportional_payout.php +++ b/cronjobs/proportional_payout.php @@ -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');