Fixed sql fail in snmp console TICKETS #3504

This commit is contained in:
fermin831 2016-04-04 12:14:57 +02:00
parent 5756d7281e
commit 57190faf76
1 changed files with 8 additions and 0 deletions

View File

@ -201,6 +201,14 @@ switch ($config["dbtype"]) {
break;
}
if (empty ($address_by_user_groups)) {
$address_by_user_groups = array ();
array_unshift ($address_by_user_groups, "\"\"");
}
if (empty ($all_address_agents)) {
$all_address_agents = array ();
array_unshift ($all_address_agents, "\"\"");
}
//Make query to extract traps of DB.
switch ($config["dbtype"]) {