2013-08-29 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_snmp_browser.php: fixed PHP warnings.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8713 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-08-29 12:18:38 +00:00
parent ad99e437b0
commit a1b163e263
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2013-08-29 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_snmp_browser.php: fixed PHP warnings.
2013-08-29 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: added supoport for disabled unknown

View File

@ -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%';