This commit is contained in:
einhornimmond 2021-05-28 11:05:44 +02:00
parent 94f6fc7050
commit c15f23f5c8

View File

@ -343,7 +343,7 @@ class AppRequestsController extends AppController
$decay = true; $decay = true;
$transactions = []; $transactions = [];
$transactions_from_db = $stateUserTransactionsQuery->toArray(); $transactions_from_db = $stateUserTransactionsQuery->toArray();
if($stateUserTransactionsQuery->count() > 0) { if(count(transactions_from_db)) {
if($orderDirection == 'DESC') { if($orderDirection == 'DESC') {
$transactions_from_db = array_reverse($transactions_from_db); $transactions_from_db = array_reverse($transactions_from_db);
} }