Skip to content
Snippets Groups Projects
Commit b82efbfc authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

prevent php8 warning, fixes #3016

Closes #3016

Merge request studip/studip!2038
parent 7b085640
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ class QuicksearchController extends AuthenticatedController
if ($this->search instanceof StandardSearch && $this->search->extendedLayout) {
$formatted['item_name'] = $this->search->getAvatarImageTag($result[0], Avatar::MEDIUM, ['title' => '']) . $formatted['item_name'];
if($result[3]) {
if (!empty($result[3])) {
$formatted['item_description'] = sprintf('%s (%s)', $result[2], $result[3]);
} else {
$formatted['item_description'] = $result[2];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment