Permalink
Browse files

If no Data Query is specified, adding rule items will not throw errors

  • Loading branch information...
Hipska committed Mar 5, 2014
1 parent 2eb0a48 commit 61c4104ca79a5e0b6ad1c483c3e1d7ad12b631d9
Showing with 1 addition and 0 deletions.
  1. +1 −0 autom8_report_rules.php
View
@@ -369,6 +369,7 @@ function autom8_report_rules_item_edit() {
$sql_and = '';
$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;
if(empty($autom8_rule['snmp_query_id'])) break;
$xml_array = get_data_query_array($autom8_rule['snmp_query_id']);
reset($xml_array['fields']);
$fields = array();

0 comments on commit 61c4104

Please sign in to comment.