From 82613f17eeaa5b794a2448a149fefa860c275963 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Sat, 27 Sep 2014 18:27:45 +1000 Subject: [PATCH] keep scrutinizer from complaining about snmpver not being set for all execution paths --- html/includes/api_functions.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index 0215665dd..bd48ad54f 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -331,6 +331,8 @@ function add_device() $data = json_decode(file_get_contents('php://input'), true); // Default status to error and change it if we need to. $status = "error"; + // keep scrutinizer from complaining about snmpver not being set for all execution paths + $snmpver = "v2c"; if(empty($data)) { $message = "No information has been provided to add this new device";