Some code cleanup [skip ci]

This commit is contained in:
James Cole
2015-05-24 11:41:52 +02:00
parent 6c71f68ed8
commit 1c1fe672bd
10 changed files with 8 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ class Income
$this->incomes->put($accountId, $newObject);
} else {
bcscale(2);
$existing = $this->incomes->get($accountId);
$existing = $this->incomes->get($accountId);
$existing->amount = bcadd($existing->amount, $entry->amount);
$existing->count++;
$this->incomes->put($accountId, $existing);