From 360025aeabe5408e609544da6d5af2ba0d8c7674 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 6 May 2014 14:29:19 +0200 Subject: [PATCH] [FIX] Also archive orphaned transactions --- include/classes/transaction.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/classes/transaction.class.php b/include/classes/transaction.class.php index 1999fd4b..4278f32f 100644 --- a/include/classes/transaction.class.php +++ b/include/classes/transaction.class.php @@ -53,6 +53,7 @@ class Transaction extends Base { WHERE t.archived = 0 AND ( ( t.account_id = ? AND t.id <= ? AND b.confirmations >= ? ) + OR ( t.account_id = ? AND t.id <= ? AND b.confirmations = -1 ) OR ( t.account_id = ? AND t.id <= ? AND t.type IN ( 'Credit_PPS', 'Donation_PPS', 'Fee_PPS', 'TXFee', 'Debit_MP', 'Debit_AP' ) ) )"); if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $account_id, $txid, $this->config['confirmations'], $account_id, $txid) && $stmt->execute())