From 56e26ab3d52fa27ee1574649696871a59d18d0b0 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 8 Feb 2024 13:42:02 +0100 Subject: [PATCH] #12695 wip removing warnings --- .../include/lib/TacticalView/elements/Database.php | 4 ++-- pandora_console/include/lib/TacticalView/elements/Groups.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/lib/TacticalView/elements/Database.php b/pandora_console/include/lib/TacticalView/elements/Database.php index c329f062bf..033783cc25 100644 --- a/pandora_console/include/lib/TacticalView/elements/Database.php +++ b/pandora_console/include/lib/TacticalView/elements/Database.php @@ -198,7 +198,7 @@ class Database extends Element $total = 0; foreach ($reads as $key => $read) { if (isset($read['utimestamp']) === false) { - $read['utimestamp'] = ''; + $read['utimestamp'] = 0; } $dates[] = date('d-m-Y H:i:s', $read['utimestamp']); @@ -277,7 +277,7 @@ class Database extends Element $total = 0; foreach ($writes as $key => $write) { if (isset($write['utimestamp']) === false) { - $write['utimestamp'] = ''; + $write['utimestamp'] = 0; } $dates[] = date('d-m-Y H:i:s', $write['utimestamp']); diff --git a/pandora_console/include/lib/TacticalView/elements/Groups.php b/pandora_console/include/lib/TacticalView/elements/Groups.php index d1bfda4e77..860d10c130 100644 --- a/pandora_console/include/lib/TacticalView/elements/Groups.php +++ b/pandora_console/include/lib/TacticalView/elements/Groups.php @@ -101,8 +101,8 @@ class Groups extends Element public function getStatusHeatMapModules():string { global $config; - $width = get_parameter('width', 350); - $height = get_parameter('height', 275); + $width = (int) get_parameter('width', 350); + $height = (int) get_parameter('height', 275); $id_groups = array_keys(users_get_groups($config['id_user'], 'AR', false));