Update community_server/src/Controller/AppRequestsController.php

you are right.

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
einhornimmond 2021-05-06 12:02:22 +02:00 committed by GitHub
parent 851c7cad06
commit 7c63d8b149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,8 +356,8 @@ class AppRequestsController extends AppController
$body['decay_date'] = $now;
if(!$state_balance) {
$body['balance'] = 0;
$body['decay'] = 0;
$body['balance'] = 0.0;
$body['decay'] = 0.0;
} else {
$body['balance'] = $state_balance->amount;
$body['decay'] = $state_balance->partDecay($now);