#12695 wip removing warnings

This commit is contained in:
Jonathan 2024-02-08 13:42:02 +01:00
parent 9084a34514
commit 56e26ab3d5
2 changed files with 4 additions and 4 deletions

View File

@ -198,7 +198,7 @@ class Database extends Element
$total = 0; $total = 0;
foreach ($reads as $key => $read) { foreach ($reads as $key => $read) {
if (isset($read['utimestamp']) === false) { if (isset($read['utimestamp']) === false) {
$read['utimestamp'] = ''; $read['utimestamp'] = 0;
} }
$dates[] = date('d-m-Y H:i:s', $read['utimestamp']); $dates[] = date('d-m-Y H:i:s', $read['utimestamp']);
@ -277,7 +277,7 @@ class Database extends Element
$total = 0; $total = 0;
foreach ($writes as $key => $write) { foreach ($writes as $key => $write) {
if (isset($write['utimestamp']) === false) { if (isset($write['utimestamp']) === false) {
$write['utimestamp'] = ''; $write['utimestamp'] = 0;
} }
$dates[] = date('d-m-Y H:i:s', $write['utimestamp']); $dates[] = date('d-m-Y H:i:s', $write['utimestamp']);

View File

@ -101,8 +101,8 @@ class Groups extends Element
public function getStatusHeatMapModules():string public function getStatusHeatMapModules():string
{ {
global $config; global $config;
$width = get_parameter('width', 350); $width = (int) get_parameter('width', 350);
$height = get_parameter('height', 275); $height = (int) get_parameter('height', 275);
$id_groups = array_keys(users_get_groups($config['id_user'], 'AR', false)); $id_groups = array_keys(users_get_groups($config['id_user'], 'AR', false));