Fixed the source data in the generation.

This commit is contained in:
mdtrooper 2016-04-12 09:23:49 +02:00
parent 0f76fdde49
commit 9aa3512b5a
1 changed files with 4 additions and 4 deletions

View File

@ -46,14 +46,14 @@ class Networkmap extends Map {
if (!isset($this->filter['only_snmp_modules']))
$this->filter['only_snmp_modules'] = false;
switch ($dbValues['source_data']) {
switch ($dbValues['source']) {
case MAP_SOURCE_GROUP:
$this->source_group = $dbValues['source'];
$this->source_group = $dbValues['source_data'];
$this->source_ip_mask = "";
break;
case MAP_SOURCE_IP_MASK:
$this->source_group = $dbValues['source'];
$this->source_ip_mask = "";
$this->source_ip_mask = $dbValues['source_data'];
$this->source_group = "";
break;
}