mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-24 20:55:31 +00:00
Fix a few small bugs and rearrange code.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user