This commit is contained in:
Daniel Muñoz Garcia 2021-05-27 12:21:41 +02:00 committed by GitHub
parent 05ae838f03
commit bb784490e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 5 deletions

View File

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

View File

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

View File

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

View File

@ -57,8 +57,8 @@ class formEditPromotion extends Form{
$result['id'] = "La promoción seleccionada no existe.";
}
$tittle = $this->test_input($datos['tittle']) ?? null;
$t = $this->test_input($datos['tittle']) ?? null;
$tittle = str_replace(" ", "_", $t);
if ( empty($tittle) ) {
$result['tittle'] = "El título no es válido";
}