mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
keep scrutinizer from complaining about snmpver not being set for all execution paths
This commit is contained in:
@@ -331,6 +331,8 @@ function add_device()
|
|||||||
$data = json_decode(file_get_contents('php://input'), true);
|
$data = json_decode(file_get_contents('php://input'), true);
|
||||||
// Default status to error and change it if we need to.
|
// Default status to error and change it if we need to.
|
||||||
$status = "error";
|
$status = "error";
|
||||||
|
// keep scrutinizer from complaining about snmpver not being set for all execution paths
|
||||||
|
$snmpver = "v2c";
|
||||||
if(empty($data))
|
if(empty($data))
|
||||||
{
|
{
|
||||||
$message = "No information has been provided to add this new device";
|
$message = "No information has been provided to add this new device";
|
||||||
|
Reference in New Issue
Block a user