From 066296d58f0a44ae16408292ba76d4445c9832a8 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 10 Oct 2011 15:35:22 +0000 Subject: [PATCH] 2011-10-10 Sergio Martin * extensions/snmp_explorer.php: Updated missed fix in snmp explorer to create the modules correctly git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5057 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/extensions/snmp_explorer.php | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 736fd0e8c5..edda537a40 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-10-10 Sergio Martin + + * extensions/snmp_explorer.php: Updated missed fix in snmp explorer + to create the modules correctly + 2011-10-10 Sergio Martin * godmode/users/configure_user.php: Deleted old fix of juanma to diff --git a/pandora_console/extensions/snmp_explorer.php b/pandora_console/extensions/snmp_explorer.php index 534ab8ec67..15f0b7cbba 100755 --- a/pandora_console/extensions/snmp_explorer.php +++ b/pandora_console/extensions/snmp_explorer.php @@ -91,8 +91,10 @@ function snmp_explorer() { } if($create_modules) { - $interfaces = json_decode(html_entity_decode(get_parameter_post("snmp_json")), true); - if(is_null($interfaces)) { + $id_snmp_serialize = get_parameter_post('id_snmp_serialize'); + $interfaces = unserialize_in_temp($id_snmp_serialize); + + if(!$interfaces) { $interfaces = array(); }