Add files via upload

This commit is contained in:
Markines16 2021-05-27 20:41:59 +02:00 committed by GitHub
parent 157201c2f8
commit 53dbcbe6a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,8 @@ class FormHall extends Form {
$this->option = $option;
$this->cinema = $cinema;
$this->og_hall = $hall;
if($hall)
$this->og_hall = $hall;
if($option == "edit_hall")
$options = array("action" => "./?state=".$option."&number=".$hall->getNumber()."&editing");
@ -39,7 +40,7 @@ class FormHall extends Form {
}
$alltozero = $_POST["alltozero"] ?? 0;
//Show the original seats_map once u click restart or the first time u enter this form from manage_halls's form
if(!isset($_GET["editing"])){
if($this->option == "edit_hall" && !isset($_GET["editing"])){
$rows = $this->og_hall->getNumRows();
$cols = $this->og_hall->getNumCol();
$seat_list = Seat::getSeatsMap($this->og_hall->getNumber(), $this->cinema);