From 46d40b72c2762057089c7a6391b0dfdd377fb736 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Fri, 11 Dec 2020 14:42:37 +0100 Subject: [PATCH] Fixed snmp interfaces --- pandora_console/include/class/AgentWizard.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/class/AgentWizard.class.php b/pandora_console/include/class/AgentWizard.class.php index aa5acda1ad..45f5e2ab15 100644 --- a/pandora_console/include/class/AgentWizard.class.php +++ b/pandora_console/include/class/AgentWizard.class.php @@ -1452,7 +1452,7 @@ class AgentWizard extends HTML foreach (array_keys($data) as $k) { foreach ($modulesActivated as $key => $value) { $valueStr = preg_replace('/\//', '\/', $value); - if (empty(preg_match('/'.$valueStr.'$/', $k)) === false) { + if (empty(preg_match('/-'.$valueStr.'$/', $k)) === false) { if (empty(preg_match('/module-name-set/', $k)) === false) { $result[$value]['name'] = $data[$k]; } else if (empty(preg_match('/module-description-set/', $k)) === false) {