Skip to content

Commit ab02860

Browse files
enjeckjuliusknorr
andcommitted
enh: Add parentheses to ternary operation
Co-authored-by: Julius Knorr <jus@bitgrid.net> Signed-off-by: Enjeck <32180937+enjeck@users.noreply.github.com>
1 parent 659acec commit ab02860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Db/RowCellUsergroupMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function formatEntity(Column $column, RowCellSuper $cell) {
4343
if ($cell->getValueType() === UsergroupType::USER) {
4444
$displayName = $this->userManager->getDisplayName($cell->getValue()) ?? $cell->getValue();
4545
} elseif ($cell->getValueType() === UsergroupType::CIRCLE) {
46-
$displayName = $this->circleHelper->getCircleDisplayName($cell->getValue(), $this->userSession->getUser()->getUID() ?? '') ?? $cell->getValue();
46+
$displayName = $this->circleHelper->getCircleDisplayName($cell->getValue(), ($this->userSession->getUser()?->getUID() ?? '')) ?? $cell->getValue();
4747
}
4848
return [
4949
'id' => $cell->getValue(),

0 commit comments

Comments
 (0)