Fixed event filter creation with empty name
This commit is contained in:
parent
bc74565662
commit
f6a1260eef
|
@ -205,6 +205,7 @@ if ($update) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($create) {
|
if ($create) {
|
||||||
|
if (!empty($values['id_name'])) {
|
||||||
$id = db_process_sql_insert('tevent_filter', $values);
|
$id = db_process_sql_insert('tevent_filter', $values);
|
||||||
|
|
||||||
if ($id === false) {
|
if ($id === false) {
|
||||||
|
@ -212,6 +213,9 @@ if ($create) {
|
||||||
} else {
|
} else {
|
||||||
ui_print_success_message('Filter created successfully');
|
ui_print_success_message('Filter created successfully');
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
ui_print_error_message('Filter name must not be empty');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$own_info = get_user_info($config['id_user']);
|
$own_info = get_user_info($config['id_user']);
|
||||||
|
|
Loading…
Reference in New Issue