From 629cad58e11fbb3bc00ee3b608dc495f63dddb0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Tue, 1 Jun 2021 16:50:28 +0200 Subject: [PATCH] Add files via upload --- purchase/includes/formPurchase.php | 2 +- purchase/includes/formSelectCinemaSession.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/purchase/includes/formPurchase.php b/purchase/includes/formPurchase.php index 1c05046..17063d5 100644 --- a/purchase/includes/formPurchase.php +++ b/purchase/includes/formPurchase.php @@ -154,7 +154,7 @@ class FormPurchase extends Form { $purchaseDAO = new PurchaseDAO("complucine"); $purchaseDAO->createPurchase(unserialize($_SESSION["user"])->getId(), $this->session->getId(), $this->session->getIdhall(), $this->cinema->getId(), rand(1, $this->hall->getNumRows()), rand(1, $this->hall->getNumCol()), date("Y-m-d H:i:s")); $purchase = new Purchase(unserialize($_SESSION["user"])->getId(), $this->session->getId(), $this->session->getIdhall(), $this->cinema->getId(), rand(1, $this->hall->getNumRows()), rand(1, $this->hall->getNumCol()), strftime("%A %e de %B de %Y a las %H:%M")); - + $_SESSION["purchase"] = serialize($purchase); $_SESSION["film_purchase"] = serialize($this->film); $result = "resume.php"; diff --git a/purchase/includes/formSelectCinemaSession.php b/purchase/includes/formSelectCinemaSession.php index 5fc233a..972c9d2 100644 --- a/purchase/includes/formSelectCinemaSession.php +++ b/purchase/includes/formSelectCinemaSession.php @@ -104,7 +104,7 @@ class FormSelectCinemaSession extends Form { $count = 0; $sessionsListHTML = '