mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Merge branch '579-se-pueden-crear-module-templates-vacías' into 'develop'
Deleted white space when saving modules template See merge request !314
This commit is contained in:
commit
61e328afa7
@ -73,9 +73,11 @@ elseif (isset ($_GET["add_module"])) {
|
|||||||
|
|
||||||
if (isset ($_GET["create"]) || isset ($_GET["update"])) {
|
if (isset ($_GET["create"]) || isset ($_GET["update"])) {
|
||||||
//Submitted form
|
//Submitted form
|
||||||
$name = get_parameter_post ("name");
|
$name = io_safe_output(get_parameter_post ("name"));
|
||||||
$description = get_parameter_post ("description");
|
$description = get_parameter_post ("description");
|
||||||
if ($name != "") {
|
|
||||||
|
if (!empty($name) && !ctype_space($name)) {
|
||||||
|
$name = io_safe_input($name);
|
||||||
if ($id_np > 0) {
|
if ($id_np > 0) {
|
||||||
//Profile exists
|
//Profile exists
|
||||||
$values = array(
|
$values = array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user