diff --git a/CHANGELOG.md b/CHANGELOG.md index c0b3c28f..4e73a722 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed -- Fix missing attachment from notification + - Fix missing attachment from notification + - Fix `limit` clause ## [1.8.10] - 2025-12-05 diff --git a/inc/helpdeskplus.class.php b/inc/helpdeskplus.class.php index 93b44123..6d01e67c 100644 --- a/inc/helpdeskplus.class.php +++ b/inc/helpdeskplus.class.php @@ -661,7 +661,7 @@ public function reportHbarTopcategory($config = []) //Init delay value $delay = PluginMreportingCommon::getCriteriaDate('glpi_tickets.date', $config['delay'], $config['randname']); - $limit = isset($_SESSION['mreporting_values']['glpilist_limit']) ? '0, ' . $_SESSION['mreporting_values']['glpilist_limit'] : '0, 20'; + $limit = $_SESSION['mreporting_values']['glpilist_limit'] ?? 20; $query = [ "SELECT" => [ @@ -715,7 +715,7 @@ public function reportHbarTopapplicant($config = []) //Init delay value $delay = PluginMreportingCommon::getCriteriaDate('glpi_tickets.date', $config['delay'], $config['randname']); - $limit = isset($_SESSION['mreporting_values']['glpilist_limit']) ? '0, ' . $_SESSION['mreporting_values']['glpilist_limit'] : '0, 20'; + $limit = $_SESSION['mreporting_values']['glpilist_limit'] ?? 20; $query = [ "SELECT" => [