diff --git a/app/Api/V1/Controllers/Models/Account/ShowController.php b/app/Api/V1/Controllers/Models/Account/ShowController.php index 33c2e100d1..586bdbedd7 100644 --- a/app/Api/V1/Controllers/Models/Account/ShowController.php +++ b/app/Api/V1/Controllers/Models/Account/ShowController.php @@ -88,7 +88,7 @@ class ShowController extends Controller $accounts = $collection->slice(($this->parameters->get('page') - 1) * $params['limit'], $params['limit']); // #11007 go to the end of the previous day. - $this->parameters->set('start', $this->parameters->get('start')->subSecond()); + $this->parameters->set('start', $this->parameters->get('start')?->subSecond()); // enrich /** @var User $admin */ @@ -129,7 +129,7 @@ class ShowController extends Controller $manager = $this->getManager(); // #11007 go to the end of the previous day. - $this->parameters->set('start', $this->parameters->get('start')->subSecond()); + $this->parameters->set('start', $this->parameters->get('start')?->subSecond()); // enrich /** @var User $admin */ diff --git a/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php b/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php index a80200038d..295eb13d08 100644 --- a/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php +++ b/app/Api/V1/Controllers/Models/TransactionCurrency/ListController.php @@ -101,7 +101,7 @@ class ListController extends Controller $accounts = $collection->slice(($this->parameters->get('page') - 1) * $pageSize, $pageSize); // #11007 go to the end of the previous day. - $this->parameters->set('start', $this->parameters->get('start')->subSecond()); + $this->parameters->set('start', $this->parameters->get('start')?->subSecond()); // enrich /** @var User $admin */