diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2d07656513..5a0d2e6bfe 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2013-08-29 Miguel de Dios + + * include/functions_snmp_browser.php: fixed PHP warnings. + 2013-08-29 Miguel de Dios * include/functions_api.php: added supoport for disabled unknown diff --git a/pandora_console/include/functions_snmp_browser.php b/pandora_console/include/functions_snmp_browser.php index 9db6cc6253..13edd78549 100644 --- a/pandora_console/include/functions_snmp_browser.php +++ b/pandora_console/include/functions_snmp_browser.php @@ -146,7 +146,7 @@ function snmp_browser_get_tree ($target_ip, $community, $starting_oid = '.', $ve } // Call snmpwalk - if ($config['snmpwalk'] == '') { + if (empty($config['snmpwalk'])) { switch (PHP_OS) { case "FreeBSD": $snmpwalk_bin = '/usr/local/bin/snmpwalk'; @@ -248,7 +248,7 @@ function snmp_browser_get_oid ($target_ip, $community, $target_oid, $version = ' } $oid_data['oid'] = $target_oid; - if ($config['snmpget'] == '') { + if (empty($config['snmpget'])) { switch (PHP_OS) { case "FreeBSD": $snmpget_bin = '/usr/local/bin/snmpget'; @@ -287,7 +287,7 @@ function snmp_browser_get_oid ($target_ip, $community, $target_oid, $version = ' $oid_data['numeric_oid'] = $oid; // Translate the OID - if ($config['snmptranslate'] == '') { + if (empty($config['snmptranslate'])) { switch (PHP_OS) { case "FreeBSD": $snmptranslate_bin = '/usr/local/bin/snmptranslate'; @@ -348,6 +348,7 @@ function snmp_browser_get_oid ($target_ip, $community, $target_oid, $version = ' * @return string The OID data. */ function snmp_browser_print_oid ($oid = array(), $custom_action = '', $return = false) { + $output = ''; // OID information table $table->width = '100%';