Merge pull request #772 from TheSerapher/issue-770

[FIX] TX Summary for Accounts
This commit is contained in:
Sebastian Grewe 2013-10-27 03:41:36 -07:00
commit e238323395

View File

@ -59,8 +59,7 @@ class Transaction extends Base {
FROM transactions AS t FROM transactions AS t
LEFT OUTER JOIN blocks AS b LEFT OUTER JOIN blocks AS b
ON b.id = t.block_id ON b.id = t.block_id
WHERE b.confirmations > 0 WHERE ( b.confirmations > 0 OR b.id IS NULL )
OR b.id IS NULL
"; ";
if (!empty($account_id)) { if (!empty($account_id)) {
$sql .= " AND t.account_id = ? "; $sql .= " AND t.account_id = ? ";