aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/quicksearch.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/quicksearch.php')
-rw-r--r--app/controllers/quicksearch.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/quicksearch.php b/app/controllers/quicksearch.php
index 194f317..c086498 100644
--- a/app/controllers/quicksearch.php
+++ b/app/controllers/quicksearch.php
@@ -14,7 +14,7 @@
/**
* Controller for the ajax-response of the QuickSearch class found in
- * lib/classes/QuickSearch.class.php
+ * lib/classes/QuickSearch.php
*/
class QuicksearchController extends AuthenticatedController
{
@@ -94,7 +94,7 @@ class QuicksearchController extends AuthenticatedController
if (!empty($result[3])) {
$formatted['item_description'] = sprintf('%s (%s)', $result[2], $result[3]);
} else {
- $formatted['item_description'] = $result[2];
+ $formatted['item_description'] = $result[2] ?? '';
}
} else if ($this->search instanceof SearchType) {
$formatted['item_name'] = $this->search->getAvatarImageTag($result[0], Avatar::SMALL, ['title' => '']) . $formatted['item_name'];