Make strval for bcadd [skip ci]

This commit is contained in:
James Cole 2016-05-20 12:07:55 +02:00
parent bea075c74d
commit 8f0856e31a

View File

@ -238,7 +238,7 @@ class PiggyBankController extends Controller
if ($amount <= $maxAmount) {
$repetition = $piggyBank->currentRelevantRep();
$repetition->currentamount = bcadd($repetition->currentamount, $amount);
$repetition->currentamount = bcadd($repetition->currentamount, strval($amount));
$repetition->save();
// create event