Skip to content

Commit

Permalink
QA: Additional fixing on #5609
Browse files Browse the repository at this point in the history
This will add a subsequent check when the XML is damaged to allow the device to be created.
  • Loading branch information
TheWitness committed Dec 12, 2023
1 parent 896e1a7 commit ff61d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data_query.php
Original file line number Diff line number Diff line change
Expand Up @@ -2464,7 +2464,7 @@ function verify_index_order($raw_xml) {

/* list each of the input fields for this snmp query */
foreach ($raw_xml['fields'] as $field_name => $field_array) {
if (isset($field_array['direction'])) {
if (is_array($field_array) && isset($field_array['direction'])) {
if ($field_array['direction'] == 'input' || $field_array['direction'] == 'input-output') {
/* create a list of all values for this index */
array_push($xml_inputs, $field_name);
Expand Down

0 comments on commit ff61d77

Please sign in to comment.