Skip to content

Commit

Permalink
[BUGFIX] Select on empty UID returns 0
Browse files Browse the repository at this point in the history
  • Loading branch information
elbebass committed Nov 3, 2021
1 parent 3d3e7d0 commit 44a0344
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Hook/OverrideIconOverlayHook.php
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 44a0344

Please sign in to comment.