From 9ffe2917de1593fddce66db3bef339e87ca0b521 Mon Sep 17 00:00:00 2001 From: Markines16 <80280295+Markines16@users.noreply.github.com> Date: Tue, 8 Jun 2021 11:26:57 +0200 Subject: [PATCH] Add files via upload --- assets/php/includes/hall.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/assets/php/includes/hall.php b/assets/php/includes/hall.php index 2425273..6abba64 100644 --- a/assets/php/includes/hall.php +++ b/assets/php/includes/hall.php @@ -36,7 +36,6 @@ if(!$bd->searchHall($number, $cinema)){ $bd->createHall($number, $cinema, $rows, $cols, $seats, $seats_map); Seat::createSeats($number, $cinema, $rows, $cols, $seats_map); - return "Se ha creado la sala con exito"; } else { return "Esta sala ya existe"; } @@ -51,13 +50,11 @@ Seat::deleteAllSeats($number, $cinema); $bd->editHall($number, $cinema, $rows, $cols, $seats, $og_number); Seat::createSeats($number, $cinema, $rows, $cols, $seats_map); - return "Se ha editado la sala con exito"; }else{ if(!$bd->searchHall($number, $cinema)){ Seat::deleteAllSeats($og_number, $cinema); $bd->editHall($number, $cinema, $rows, $cols, $seats, $og_number); Seat::createSeats($number, $cinema, $rows, $cols, $seats_map); - return "Se ha editado la sala con exito"; }else return "El nuevo numero de sala ya existe en otra sala"; } @@ -73,7 +70,6 @@ if($bd->searchHall($og_number, $cinema)){ $bd->deleteHall($og_number, $cinema); Seat::deleteAllSeats($og_number, $cinema); - return "La sala se ha eliminado correctamente"; } else { return "La sala a borrar no existe"; }