From 7f604f0c8dccbb4795fcfaeae9e33af860dc4b42 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 23 Jan 2024 17:47:26 +0100 Subject: [PATCH] #12460 fixed deprecated --- pandora_console/include/graphs/functions_gd.php | 7 +++++++ .../include/lib/ClusterViewer/ClusterWizard.php | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/pandora_console/include/graphs/functions_gd.php b/pandora_console/include/graphs/functions_gd.php index e32e76222f..b34bed47f7 100755 --- a/pandora_console/include/graphs/functions_gd.php +++ b/pandora_console/include/graphs/functions_gd.php @@ -301,6 +301,13 @@ function gd_progress_bubble($width, $height, $progress, $title, $font, $out_of_l function ImageRectangleWithRoundedCorners(&$im, $x1, $y1, $x2, $y2, $radius, $color) { + $x1 = (int) $x1; + $y1 = (int) $y1; + $x2 = (int) $x2; + $y2 = (int) $y2; + $radius = (int) $radius; + $color = (int) $color; + // Draw rectangle without corners imagefilledrectangle($im, ($x1 + $radius), $y1, ($x2 - $radius), $y2, $color); imagefilledrectangle($im, $x1, ($y1 + $radius), $x2, ($y2 - $radius), $color); diff --git a/pandora_console/include/lib/ClusterViewer/ClusterWizard.php b/pandora_console/include/lib/ClusterViewer/ClusterWizard.php index 3c4c4eb293..0c67cc64f9 100644 --- a/pandora_console/include/lib/ClusterViewer/ClusterWizard.php +++ b/pandora_console/include/lib/ClusterViewer/ClusterWizard.php @@ -113,6 +113,13 @@ class ClusterWizard extends \HTML */ private $agent; + /** + * Id of clusters. + * + * @var integer + */ + public $id; + /** * Builds a Cluster Wizard.