Skip to content

Commit

Permalink
Merge pull request #28 from Leuchtfeuer/bugfix_selectOnRoot
Browse files Browse the repository at this point in the history
Check if UID is set, if not early exit with 0
  • Loading branch information
elbebass committed Nov 8, 2021
2 parents 9f7c5a1 + 44a0344 commit b7e8f7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
4 changes: 4 additions & 0 deletions Classes/Hook/OverrideIconOverlayHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public function postOverlayPriorityLookup(string $table, array $row, array $stat

private function countRegions(string $table, array $row): int
{
if (empty($row['uid'])) {
return 0;
}

$qb = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($table);

return (int)$qb
Expand Down

0 comments on commit b7e8f7f

Please sign in to comment.