From 529ea387b656f524b1f76b4ebf0db3a636a2f405 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 9 May 2016 11:54:25 +0200 Subject: [PATCH] Fixed again the generation method when a new networkmap is update. --- pandora_console/operation/maps/networkmap_editor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/operation/maps/networkmap_editor.php b/pandora_console/operation/maps/networkmap_editor.php index c03d922930..179fa88b13 100644 --- a/pandora_console/operation/maps/networkmap_editor.php +++ b/pandora_console/operation/maps/networkmap_editor.php @@ -167,7 +167,7 @@ if ($update_networkmap) { $id_group = (int) get_parameter('id_group', 0); $name = (string) get_parameter('name', ""); $description = (string) get_parameter('description', ""); - if (enterprise_installed()) { + if (!enterprise_installed()) { $generation_method = (int) get_parameter('generation_method', MAP_GENERATION_CIRCULAR); } $source_period = (int) get_parameter('source_period', 60 * 5); @@ -205,7 +205,7 @@ if ($update_networkmap) { $values['source_period'] = $source_period; $values['source_data'] = $source_data; $values['source'] = $source; - if (enterprise_installed()) { + if (!enterprise_installed()) { $values['generation_method'] = $generation_method; } $values['width'] = $width;