Add files via upload

This commit is contained in:
Daniel Muñoz Garcia 2021-05-27 12:39:26 +02:00 committed by GitHub
parent faec3af6f7
commit c5ee1bd4c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class formAddPromotion extends Form{
$result = array(); $result = array();
$t = $this->test_input($datos['tittle']) ?? null; $t = $this->test_input($datos['tittle']) ?? null;
$tittle = str_replace(" ", "_", $t); $tittle = strtolower(str_replace(" ", "_", $t));
if ( empty($tittle) ) { if ( empty($tittle) ) {
$result['tittle'] = "El título no es válido"; $result['tittle'] = "El título no es válido";

View File

@ -61,7 +61,7 @@ class formEditFilm extends Form{
} }
$t = $this->test_input($datos['tittle']) ?? null; $t = $this->test_input($datos['tittle']) ?? null;
$tittle = str_replace(" ", "_", $t); $tittle = strtolower(str_replace(" ", "_", $t));
//|| !mb_ereg_match(self::HTML5_EMAIL_REGEXP, $tittle) //|| !mb_ereg_match(self::HTML5_EMAIL_REGEXP, $tittle)
if ( empty($tittle) ) { if ( empty($tittle) ) {
$result['tittle'] = "El título no es válido"; $result['tittle'] = "El título no es válido";

View File

@ -58,7 +58,7 @@ class formEditPromotion extends Form{
} }
$t = $this->test_input($datos['tittle']) ?? null; $t = $this->test_input($datos['tittle']) ?? null;
$tittle = str_replace(" ", "_", $t); $tittle = strtolower(str_replace(" ", "_", $t));
if ( empty($tittle) ) { if ( empty($tittle) ) {
$result['tittle'] = "El título no es válido"; $result['tittle'] = "El título no es válido";
} }