mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Check variable value to show error message
This commit is contained in:
parent
0300f3723d
commit
2387cbd352
@ -127,7 +127,7 @@ if ($create_tag) {
|
||||
|
||||
// Erase comma characters on tag name
|
||||
$name_tag = str_replace(',', '', $name_tag);
|
||||
|
||||
hd($name_tag, true);
|
||||
$data = [];
|
||||
$data['name'] = $name_tag;
|
||||
$data['description'] = $description_tag;
|
||||
@ -155,11 +155,14 @@ if ($create_tag) {
|
||||
AUDIT_LOG_TAG_MANAGEMENT,
|
||||
$auditMessage
|
||||
);
|
||||
ui_print_result_message(
|
||||
$action === 'update',
|
||||
__('Successfully created tag'),
|
||||
__('Error creating tag')
|
||||
);
|
||||
|
||||
if ($name_tag !== '') {
|
||||
ui_print_result_message(
|
||||
$action === 'update',
|
||||
__('Successfully created tag'),
|
||||
__('Error creating tag')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Form fields are filled here
|
||||
|
Loading…
x
Reference in New Issue
Block a user