From 884b98e250b196e78922d5900e13a506024aea51 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Tue, 16 Jun 2015 09:01:13 +1000 Subject: [PATCH] Another scrutinizer fix --- includes/snmp.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/snmp.inc.php b/includes/snmp.inc.php index 91574c8e2..ca4047815 100644 --- a/includes/snmp.inc.php +++ b/includes/snmp.inc.php @@ -824,7 +824,8 @@ function snmp_mib_parse($oid, $mib, $module, $mibdir = null) { global $debug; - $lastpart = end(explode(".", $oid)); + $fulloid = explode(".", $oid); + $lastpart = end($fulloid); $cmd = "snmptranslate -Td -On"; $cmd .= mibdir($mibdir);