From 0d392c2002694386be78b3de010c90a6f6d947c7 Mon Sep 17 00:00:00 2001 From: rmontanana Date: Mon, 24 Feb 2014 13:43:02 +0100 Subject: [PATCH] =?UTF-8?q?Corregido=20un=20error=20que=20hac=C3=ADa=20que?= =?UTF-8?q?=20no=20salieran=20los=20listados=20de=20los=20mantenimientos.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inventario.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Inventario.php b/Inventario.php index a6629b3..7170c3d 100644 --- a/Inventario.php +++ b/Inventario.php @@ -120,10 +120,8 @@ class Inventario { // Creamos un objeto Distribución facilitándole el // nombre del archivo plantilla y el objeto que aportará // el contenido - $opc = ''; - if (isset($_GET['opc'])) { - list($opcion, $parametro) = explode("&", $this->opcActual); - } + $opc = $_GET['opc']; + list($opcion, $parametro) = explode("&", $this->opcActual); switch ($opc) { case 'informe': $enlace = 'xml/informe' . ucfirst($opcion) . '.xml';