diff --git a/panel_admin/includes/formAddPromotion.php b/panel_admin/includes/formAddPromotion.php index ea5ec37..f566cc4 100644 --- a/panel_admin/includes/formAddPromotion.php +++ b/panel_admin/includes/formAddPromotion.php @@ -49,7 +49,7 @@ class formAddPromotion extends Form{ $result = array(); $t = $this->test_input($datos['tittle']) ?? null; - $tittle = str_replace(" ", "_", $t); + $tittle = strtolower(str_replace(" ", "_", $t)); if ( empty($tittle) ) { $result['tittle'] = "El título no es válido"; diff --git a/panel_admin/includes/formEditFilm.php b/panel_admin/includes/formEditFilm.php index 0e2854b..3b17aaa 100644 --- a/panel_admin/includes/formEditFilm.php +++ b/panel_admin/includes/formEditFilm.php @@ -61,7 +61,7 @@ class formEditFilm extends Form{ } $t = $this->test_input($datos['tittle']) ?? null; - $tittle = str_replace(" ", "_", $t); + $tittle = strtolower(str_replace(" ", "_", $t)); //|| !mb_ereg_match(self::HTML5_EMAIL_REGEXP, $tittle) if ( empty($tittle) ) { $result['tittle'] = "El título no es válido"; diff --git a/panel_admin/includes/formEditPromotion.php b/panel_admin/includes/formEditPromotion.php index b195153..a030a79 100644 --- a/panel_admin/includes/formEditPromotion.php +++ b/panel_admin/includes/formEditPromotion.php @@ -58,7 +58,7 @@ class formEditPromotion extends Form{ } $t = $this->test_input($datos['tittle']) ?? null; - $tittle = str_replace(" ", "_", $t); + $tittle = strtolower(str_replace(" ", "_", $t)); if ( empty($tittle) ) { $result['tittle'] = "El título no es válido"; }