Fixed the insert duplicate event filter.

This commit is contained in:
mdtrooper 2015-03-23 19:16:42 +01:00
parent 75dbb4dcb9
commit b4e74e8502

View File

@ -82,6 +82,13 @@ if (is_ajax()) {
$values['filter_only_alert'] = get_parameter('filter_only_alert');
$values['id_group_filter'] = get_parameter('id_group_filter');
$exists = (bool)db_get_value_filter(
'id_filter', 'tevent_filter', $values);
if ($exists) {
echo 'error';
}
else {
$result = db_process_sql_insert('tevent_filter', $values);
if ($result === false) {
@ -91,6 +98,7 @@ if (is_ajax()) {
echo $result;
}
}
}
if ($update_event_filter) {
$values = array();