From a79666f60cb269315d762e95c27b809a25e1a662 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 28 Aug 2015 18:01:30 +0200 Subject: [PATCH] Fixed PHP Warning. --- pandora_console/operation/agentes/networkmap.groups.php | 3 +++ pandora_console/operation/agentes/networkmap.topology.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pandora_console/operation/agentes/networkmap.groups.php b/pandora_console/operation/agentes/networkmap.groups.php index ceaabb1a7c..a60b0e3b11 100644 --- a/pandora_console/operation/agentes/networkmap.groups.php +++ b/pandora_console/operation/agentes/networkmap.groups.php @@ -60,6 +60,9 @@ $strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_use // Set filter $filter = networkmap_get_filter ($layout); +if (!isset($size_canvas)) { + $size_canvas = null; +} // Generate dot file $graph = networkmap_generate_dot_groups (__('Pandora FMS'), $group, diff --git a/pandora_console/operation/agentes/networkmap.topology.php b/pandora_console/operation/agentes/networkmap.topology.php index 5493cdd073..54e5272a1b 100644 --- a/pandora_console/operation/agentes/networkmap.topology.php +++ b/pandora_console/operation/agentes/networkmap.topology.php @@ -64,6 +64,9 @@ if (!isset($text_filter)) { $text_filter = ''; } +if (!isset($size_canvas)) { + $size_canvas = null; +} // Generate dot file