This commit is contained in:
Daniel Muñoz Garcia
2021-05-13 17:37:09 +02:00
committed by GitHub
parent 58e8f0a17f
commit 7a52e6a6a7
11 changed files with 51 additions and 64 deletions

View File

@ -47,8 +47,8 @@ class formDeleteFilm extends Form{
protected function procesaFormulario($datos){
$result = array();
$id = $this->test_input($_POST['id']) ?? null;
if ( empty($id)) {
$id = $this->test_input($datos['id']) ?? null;
if ( is_null($id)) {
$result['id'] = "La pelicula seleccionada no existe.";
}