Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
If no Data Query is specified, adding rule items will not throw errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Hipska committed Mar 5, 2014
1 parent 2eb0a48 commit 61c4104
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autom8_report_rules.php
Expand Up @@ -369,6 +369,7 @@ function autom8_report_rules_item_edit() {
$sql_and = ''; $sql_and = '';
$autom8_rule = db_fetch_row(sprintf('SELECT * FROM plugin_autom8_report_rules WHERE id = %d LIMIT 1;', $rule_id)); $autom8_rule = db_fetch_row(sprintf('SELECT * FROM plugin_autom8_report_rules WHERE id = %d LIMIT 1;', $rule_id));
$_fields_rule_item_edit = $fields_autom8_graph_rule_item_edit; $_fields_rule_item_edit = $fields_autom8_graph_rule_item_edit;
if(empty($autom8_rule['snmp_query_id'])) break;
$xml_array = get_data_query_array($autom8_rule['snmp_query_id']); $xml_array = get_data_query_array($autom8_rule['snmp_query_id']);
reset($xml_array['fields']); reset($xml_array['fields']);
$fields = array(); $fields = array();
Expand Down

0 comments on commit 61c4104

Please sign in to comment.