mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix function to work also with empty table
This commit is contained in:
parent
97c570c08c
commit
77f6f679d2
@ -426,6 +426,9 @@ class TransactionsTable extends Table
|
||||
}
|
||||
}
|
||||
}
|
||||
if(count($state_user_ids) < 1) {
|
||||
return ['success' => true];
|
||||
}
|
||||
//var_dump($entities);
|
||||
$stateUsersTable = TableRegistry::getTableLocator()->get('StateUsers');
|
||||
$existingStateUsers = $stateUsersTable->find('all')->select(['id'])->where(['id IN' => $state_user_ids])->order(['id'])->all();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user