diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-08-21 13:33:53 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-08-21 13:33:53 +0000 |
| commit | b82efbfc95fce2e1ead163223f005df7254e2869 (patch) | |
| tree | 3d45898c4d2c4e88aaf1819c6ba142dd0778d793 /app | |
| parent | 7b085640b2a13f122263bc831e58ba11fc65d890 (diff) | |
prevent php8 warning, fixes #3016
Closes #3016
Merge request studip/studip!2038
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/quicksearch.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/quicksearch.php b/app/controllers/quicksearch.php index 9e1f2f9..194f317 100644 --- a/app/controllers/quicksearch.php +++ b/app/controllers/quicksearch.php @@ -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]; |
