diff --git a/modules/AOR_Reports/AOR_Report.php b/modules/AOR_Reports/AOR_Report.php index ddbe643a581..79971238243 100755 --- a/modules/AOR_Reports/AOR_Report.php +++ b/modules/AOR_Reports/AOR_Report.php @@ -1380,7 +1380,7 @@ function build_report_query_where($query = array()){ break; } } else { - $query['where'][] = ($tiltLogicOp ? '' : ($condition->logic_op ? $condition->logic_op . ' ': 'AND ')) . $field . ' ' . $app_list_strings['aor_sql_operator_list'][$condition->operator] . ' ' . $value; + if (!$where_set) $query['where'][] = ($tiltLogicOp ? '' : ($condition->logic_op ? $condition->logic_op . ' ': 'AND ')) . $field . ' ' . $app_list_strings['aor_sql_operator_list'][$condition->operator] . ' ' . $value; } } $tiltLogicOp = false;