mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed the insert duplicate event filter.
This commit is contained in:
parent
75dbb4dcb9
commit
b4e74e8502
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user