From f3b079f8546858502a45695201918e1cdc03075d Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 11 Feb 2014 11:11:13 +0100 Subject: [PATCH] [FIX] Force string comparision --- scripts/validate_payouts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate_payouts.php b/scripts/validate_payouts.php index b05fdfef..d094d61c 100755 --- a/scripts/validate_payouts.php +++ b/scripts/validate_payouts.php @@ -63,7 +63,7 @@ foreach ($aAllDebitTxs as $aDebitTx) { $txid = 'n/a'; foreach($aListTransactions as $key => $aTransaction) { // Search for match NOT by txid - if (isset($aTransaction['address']) && $aTransaction['address'] == $aDebitTx['coin_address'] && ($aTransaction['amount'] == ($aDebitTx['amount'] * -1) || $aTransaction['amount'] == ($aDebitTx['amount'] * -1 - $config['txfee_manual']) || $aTransaction['amount'] == ($aDebitTx['amount'] * -1 - $config['txfee_auto']) )) { + if (isset($aTransaction['address']) && $aTransaction['address'] == $aDebitTx['coin_address'] && ((string)$aTransaction['amount'] == (string)($aDebitTx['amount'] * -1) || (string)$aTransaction['amount'] == (string)($aDebitTx['amount'] * -1 - $config['txfee_manual']) || (string)$aTransaction['amount'] == (string)($aDebitTx['amount'] * -1 - $config['txfee_auto']) )) { unset($aListTransactions[$key]); $found++; $bFound = true;