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';