New maps in progress... (Fixed error in maps update)

This commit is contained in:
Arturo Gonzalez 2016-04-12 10:23:12 +02:00
parent 9aa3512b5a
commit 18412b7727
1 changed files with 9 additions and 1 deletions

View File

@ -259,7 +259,15 @@ else if ($delete_networkmap || $duplicate_networkmap || $update_networkmap) {
$description = (string) get_parameter('description', "");
$source_period = (int) get_parameter('source_period', 60 * 5);
$source = (int) get_parameter('source', MAP_SOURCE_GROUP);
$source_data = (string) get_parameter('source_data', '');
switch ($source) {
case MAP_SOURCE_GROUP:
$source_data = (string) get_parameter('source_group', '');
break;
case MAP_SOURCE_IP_MASK:
$source_data = (string) get_parameter('source_ip_mask', '');
break;
}
$width = (int) get_parameter('width', 800);
$height = (int) get_parameter('height', 800);