diff --git a/AportaContenido.php b/AportaContenido.php index bdee753..79a36cb 100644 --- a/AportaContenido.php +++ b/AportaContenido.php @@ -145,7 +145,7 @@ class AportaContenido { case 'principal': return "Pantalla Inicial"; case 'elementos': - case 'articulos': $opcion="artículos"; + case 'articulos': $opcion = "artículos"; case 'ubicaciones': case 'usuarios': case 'test': @@ -213,7 +213,7 @@ class AportaContenido { return $this->mensajePermisos('Informes'); } case 'descuadres': - if ($this->perfil['Informe']) { + if ($this->perfil['Informe'] && $this->p) { $enlace = 'xml/informe' . ucfirst($opcion) . '.xml'; $informe = new InformePDF($this->bdd, $enlace, $this->registrado); $informe->crea($enlace); @@ -231,21 +231,34 @@ class AportaContenido { return $this->mensajePermisos("Actualización, creación y borrado de elementos"); } case 'copiaseg': - if ($this->perfil['Informe']) { - $mensaje = '