diff --git a/src/Glpi/Dashboard/Widget.php b/src/Glpi/Dashboard/Widget.php index 5644d331ac0..2faf562415d 100644 --- a/src/Glpi/Dashboard/Widget.php +++ b/src/Glpi/Dashboard/Widget.php @@ -1657,7 +1657,7 @@ public static function searchShowList(array $params = []): string ]; $p = array_merge($default, $params); - $p['label'] = $p['label'] ?? \htmlspecialchars($p['label']); + $p['label'] = \htmlspecialchars($p['label'] ?? ''); $id = "search-table-" . $p['rand'];