mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Trimmed tag name
This commit is contained in:
parent
2387cbd352
commit
4a250fc7c0
@ -121,13 +121,14 @@ if ($update_tag && $id_tag != 0) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create tag: creates a new tag
|
// Create tag: creates a new tag.
|
||||||
if ($create_tag) {
|
if ($create_tag) {
|
||||||
$return_create = true;
|
$return_create = true;
|
||||||
|
|
||||||
// Erase comma characters on tag name
|
// Erase comma characters and spaces on tag name.
|
||||||
$name_tag = str_replace(',', '', $name_tag);
|
$name_tag = str_replace(',', '', $name_tag);
|
||||||
hd($name_tag, true);
|
$name_tag = str_replace(' ', '', $name_tag);
|
||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
$data['name'] = $name_tag;
|
$data['name'] = $name_tag;
|
||||||
$data['description'] = $description_tag;
|
$data['description'] = $description_tag;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user