From b80f870ca8918c6cc84a803b5f49cf64db0b180d Mon Sep 17 00:00:00 2001 From: OscarRui <79144467+OscarRui@users.noreply.github.com> Date: Thu, 27 May 2021 10:13:12 +0200 Subject: [PATCH] Parches en panel_manager --- panel_manager/panel_manager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panel_manager/panel_manager.php b/panel_manager/panel_manager.php index 7cf26d8..5eb13b1 100644 --- a/panel_manager/panel_manager.php +++ b/panel_manager/panel_manager.php @@ -14,10 +14,10 @@ static function welcome($manager){ $bd = new Cinema_DAO('complucine'); if($bd){ - $cinema = ($bd->cinemaData($manager->getIdcinema()))->fetch_assoc(); - $c_name = $cinema["name"]; - $c_dir = $cinema["direction"]; - $c_tel = $cinema["phone"]; + $cinema = ($bd->cinemaData($manager->getIdcinema())); + $c_name = $cinema->getId(); + $c_dir = $cinema->getId(); + $c_tel = $cinema->getId(); } $name = strtoupper($_SESSION["nombre"]); $cinema = strtoupper( $manager->getIdcinema());