From f8bee910e059d0d9efa5cf11a4d728315d250dff Mon Sep 17 00:00:00 2001 From: Markines16 <80280295+Markines16@users.noreply.github.com> Date: Tue, 8 Jun 2021 11:27:25 +0200 Subject: [PATCH] Add files via upload --- panel_manager/includes/formHall.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/panel_manager/includes/formHall.php b/panel_manager/includes/formHall.php index 868b4cb..1e4b6cd 100644 --- a/panel_manager/includes/formHall.php +++ b/panel_manager/includes/formHall.php @@ -188,18 +188,18 @@ class FormHall extends Form { } if (count($result) === 0 && isset($datos["sumbit"]) ) { if($this->option == "new_hall"){ - $_SESSION['msg'] = Hall::create_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map); - return $result = './?state=success'; + Hall::create_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map); + return $result = './?state=success&new=true'; } if($this->option == "edit_hall"){ - $_SESSION['msg'] = Hall::edit_hall($number,$this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber()); - return $result = './?state=success'; + Hall::edit_hall($number,$this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber()); + return $result = './?state=success&edit=true'; } } if (!isset($result['number']) && isset($datos["delete"]) ) { if($this->option == "edit_hall"){ - $_SESSION['msg'] = Hall::delete_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber()); - return $result = './?state=success'; + Hall::delete_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber()); + return $result = './?state=success&del=true'; } }