diff --git a/pandora_console/include/lib/Dashboard/Widgets/events_list.php b/pandora_console/include/lib/Dashboard/Widgets/events_list.php index 7a3ee0a613..3330cc2ae6 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/events_list.php +++ b/pandora_console/include/lib/Dashboard/Widgets/events_list.php @@ -519,8 +519,6 @@ class EventsListWidget extends Widget } } - $hours = ($this->values['maxHours'] * SECONDS_1HOUR); - // Put hours in seconds. $filter = []; $order = []; @@ -546,7 +544,7 @@ class EventsListWidget extends Widget } } else { // Filtering. - $filter['event_view_hr'] = $hours; + $filter['event_view_hr'] = $this->values['maxHours']; // Group. $filter['id_group_filter'] = $this->values['groupId'];