Skip to content

Commit ff61d77

Browse files
committed
QA: Additional fixing on Cacti#5609
This will add a subsequent check when the XML is damaged to allow the device to be created.
1 parent 896e1a7 commit ff61d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/data_query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2464,7 +2464,7 @@ function verify_index_order($raw_xml) {
24642464

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

0 commit comments

Comments
 (0)