ref #3 Arreglada la importación de datos. Sólo falta hacerla efectiva. Cambiados algunos aspectos menores de la clase inventario para evitar algún warning

This commit is contained in:
2014-02-23 04:04:34 +01:00
parent dc65e2bc63
commit 37a2afa9f4
6 changed files with 65 additions and 76 deletions

View File

@@ -120,8 +120,10 @@ class Inventario {
// Creamos un objeto Distribución facilitándole el
// nombre del archivo plantilla y el objeto que aportará
// el contenido
$opc = $_GET['opc'];
list($opcion, $parametro) = explode("&", $this->opcActual);
$opc = '';
if (isset($_GET['opc'])) {
list($opcion, $parametro) = explode("&", $this->opcActual);
}
switch ($opc) {
case 'informe':
$enlace = 'xml/informe' . ucfirst($opcion) . '.xml';