Skip to content

Commit

Permalink
[TASK] Check for empty uidList
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteeb authored Jul 15, 2024
1 parent c34da88 commit 63ee27c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/ViewHelpers/GetDatabaseRecordViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public static function renderStatic(array $arguments, \Closure $renderChildrenCl
$queryBuilder = self::getQueryBuilder($table);
$splitChar = $arguments['splitChar'] ?? self::DEFAULT_SPLIT_CHAR;
$uids = GeneralUtility::intExplode($splitChar, (string)$arguments['uidList'], true);
if ($uids === []) {
return [];
}

$queryBuilder
->select('*')
Expand Down

0 comments on commit 63ee27c

Please sign in to comment.