From 3c85cba86ce5a23dcf0e516733a94fa735679f50 Mon Sep 17 00:00:00 2001 From: fredyrivera Date: Mon, 28 Nov 2016 14:23:38 -0500 Subject: [PATCH] multiempresa --- milfs/funciones/funciones.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index 6a154bd..015e4a9 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -3991,7 +3991,7 @@ $xajax->registerFunction("configurar_dominio"); function multiempresa($tabla,$div){ require ("includes/parametrizacion.php"); - if($_SESSION['id'] === 1 ) { + if($_SESSION['id'] == 1 AND $soporte_multiempresa !== 0) { if($div =="") { $div="contenido"; $resultado =" ConfiguraciĆ³n multiempresa"; @@ -13333,7 +13333,7 @@ return $respuesta; elseif($accion =="nuevo") { //$respuesta = new xajaxResponse('utf-8'); $div="contenido"; - if($_SESSION['id'] == 1 AND $soporte_multiempresa != 0) { + if($_SESSION['id'] == 1 AND $soporte_multiempresa !== 0) { $empresa = select('empresa','id','razon_social','',"estado = '1'",'id_empresa'); $empresa ="