Remove function report_this_text() (#10728)

This commit is contained in:
Jellyfrog
2019-10-21 13:39:30 +02:00
committed by Tony Murray
parent 9b994d0562
commit e5849ca055
2 changed files with 1 additions and 6 deletions

View File

@@ -787,11 +787,6 @@ function generate_ap_url($ap, $vars = array())
return generate_url(array('page' => 'device', 'device' => $ap['device_id'], 'tab' => 'accesspoint', 'ap' => $ap['accesspoint_id']), $vars);
}//end generate_ap_url()
function report_this_text($message)
{
return $message . '\nPlease report this to the ' . Config::get('project_name') . ' developers at ' . Config::get('project_issues') . '\n';
}//end report_this_text()
// Find all the files in the given directory that match the pattern

View File

@@ -267,7 +267,7 @@ function snmp_get($device, $oid, $options = null, $mib = null, $mibdir = null)
$time_start = microtime(true);
if (strstr($oid, ' ')) {
echo report_this_text("snmp_get called for multiple OIDs: $oid");
throw new Exception("snmp_get called for multiple OIDs: $oid");
}
$cmd = gen_snmpget_cmd($device, $oid, $options, $mib, $mibdir);