Fixes issue where snmp_get would not return the value 0

This commit is contained in:
Mike Rostermund
2015-10-14 20:33:59 +02:00
parent 970620f2e0
commit f064061b1c

View File

@@ -133,7 +133,7 @@ function snmp_get($device, $oid, $options=null, $mib=null, $mibdir=null) {
if (is_string($data) && (preg_match('/(No Such Instance|No Such Object|No more variables left|Authentication failure)/i', $data))) {
return false;
}
else if ($data) {
elseif ($data || $data === '0') {
return $data;
}
else {