Update device_vendor_function_edit.php
Prevent a warning that was discovered in the Admin Training.
This commit is contained in:
parent
2fb79825ea
commit
9fc3541382
|
|
@ -198,8 +198,8 @@
|
|||
$sql .= "where device_vendor_function_uuid = '$device_vendor_function_uuid' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$device_vendor_functions = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($device_vendor_functions as &$row) {
|
||||
//$label = $row["label"];
|
||||
$name = $row["name"];
|
||||
$value = $row["value"];
|
||||
|
|
@ -232,11 +232,13 @@
|
|||
unset($sql, $prep_statement);
|
||||
|
||||
//set the assigned_groups array
|
||||
if (is_array($menu_item_groups)) {
|
||||
foreach($menu_item_groups as $field) {
|
||||
if (strlen($field['group_name']) > 0) {
|
||||
$assigned_groups[] = $field['group_uuid'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//get the groups
|
||||
$sql = "select * from v_groups ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue