This commit is contained in:
Daniel Muñoz Garcia
2021-05-13 12:37:15 +02:00
committed by GitHub
parent 2b99c192b7
commit a5cac66b1d
5 changed files with 18 additions and 19 deletions

View File

@ -21,8 +21,8 @@ class formAddManager extends Form{
// Se generan los mensajes de error si existen.
$htmlErroresGlobales = self::generaListaErroresGlobales($errores);
//$errorId = self::createMensajeError($errores, 'id', 'span', array('class' => 'error'));
//$errorIdCinema = self::createMensajeError($errores, 'idcinema', 'span', array('class' => 'error'));
$errorId = self::createMensajeError($errores, 'id', 'span', array('class' => 'error'));
$errorIdCinema = self::createMensajeError($errores, 'idcinema', 'span', array('class' => 'error'));
$html = '<div class="row">
<fieldset id="film_form"><pre>'.$htmlErroresGlobales.'</pre>
@ -48,13 +48,13 @@ class formAddManager extends Form{
$id = $this->test_input($datos['id']) ?? null;
if (is_null($id) ) {
$result[] = "ERROR. No existe un usuario con ese ID";
$result['id'] = "ERROR. No existe un usuario con ese ID";
}
$idcinema = $this->test_input($datos['idcinema']) ?? null;
//||!mb_ereg_match(self::HTML5_EMAIL_REGEXP, $duration)
if (is_null($idcinema)) {
$result[] = "ERROR. No existe un cine con ese ID";
$result['idcinema'] = "ERROR. No existe un cine con ese ID";
}