aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/quicksearch.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-08-21 13:33:53 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-08-21 13:33:53 +0000
commitb82efbfc95fce2e1ead163223f005df7254e2869 (patch)
tree3d45898c4d2c4e88aaf1819c6ba142dd0778d793 /app/controllers/quicksearch.php
parent7b085640b2a13f122263bc831e58ba11fc65d890 (diff)
prevent php8 warning, fixes #3016
Closes #3016 Merge request studip/studip!2038
Diffstat (limited to 'app/controllers/quicksearch.php')
-rw-r--r--app/controllers/quicksearch.php2
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];