Skip to content

Commit

Permalink
[BUGFIX] Prevent exception in A/B testing module
Browse files Browse the repository at this point in the history
on empty data installations

Related: #46
  • Loading branch information
einpraegsam committed Apr 11, 2024
1 parent 12c4d75 commit 0e26d57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Domain/Repository/AbstractRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public function persistAll(): void
*/
protected function convertIdentifiersToObjects(array $identifiers, string $tableName): array
{
if ($identifiers === []) {
return [];
}
$identifierList = implode(',', $identifiers);
$sql = 'select * from ' . $tableName . ' where uid in (' . $identifierList . ')'
. 'ORDER BY FIELD(uid, ' . $identifierList . ')';
Expand Down

0 comments on commit 0e26d57

Please sign in to comment.