Skip to content

Commit

Permalink
[FIX] fix for negative balance
Browse files Browse the repository at this point in the history
using php abs() should do the trick with negative balance
  • Loading branch information
iAmShorty committed Feb 14, 2014
1 parent 691e1e6 commit b0baa29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/include/classes/bitcoinwrapper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function getrealbalance() {
return $dBalance;
} else {
$dMainBalance = $aAccounts[''];
$dUnconfirmed = $dMainBalance - $dBalance;
//$dUnconfirmed = $dMainBalance - $dBalance;
$dUnconfirmed = $dMainBalance - abs($dBalance);
//return $dMainBalance - $dUnconfirmed;
return $dMainBalance - abs($dUnconfirmed)
}
Expand Down

0 comments on commit b0baa29

Please sign in to comment.