mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
commit
4fe9b0c772
@ -329,11 +329,13 @@ class AppRequestsController extends AppController
|
|||||||
->page($page)
|
->page($page)
|
||||||
;
|
;
|
||||||
$decay = true;
|
$decay = true;
|
||||||
$transactions = $transactionsTable->listTransactionsHumanReadable($stateUserTransactionsQuery->toArray(), $user, $decay);
|
$transactions = [];
|
||||||
|
if($stateUserTransactionsQuery->count() > 0) {
|
||||||
|
$transactions = $transactionsTable->listTransactionsHumanReadable($stateUserTransactionsQuery->toArray(), $user, $decay);
|
||||||
|
|
||||||
|
if($orderDirection == 'DESC') {
|
||||||
if($orderDirection == 'DESC') {
|
$transactions = array_reverse($transactions);
|
||||||
$transactions = array_reverse($transactions);
|
}
|
||||||
}
|
}
|
||||||
return $this->returnJson([
|
return $this->returnJson([
|
||||||
'state' => 'success',
|
'state' => 'success',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user