Fix a few small bugs and rearrange code.

This commit is contained in:
James Cole
2024-03-10 11:57:21 +01:00
parent 3413b9b5b5
commit d5ea78025e
10 changed files with 192 additions and 40 deletions

View File

@@ -91,7 +91,7 @@ class AccountTransformer extends AbstractTransformer
// TODO needs separate method.
$sort = $this->parameters->get('sort');
if (count($sort) > 0) {
if (is_countable($sort) && count($sort) > 0) {
foreach ($sort as $column => $direction) {
// account_number + iban
if ('iban' === $column) {