From f79e92f4a5ebf90ddb33469110e19f80f3383eab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Sklar?= Date: Tue, 16 Dec 2003 16:38:46 +0000 Subject: [PATCH 1/1] =?utf8?q?-=20Arreglamos=20la=20carga=20del=20document?= =?utf8?q?o=20en=20la=20variable=20de=20sesi=C3=B3n=20porque=20en=20el=20L?= =?utf8?q?DAP=20a=20veces=20viene=20el=20nro=20de=20documento=20y=20a=20ve?= =?utf8?q?ces=20el=20cuil.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sistema/www/login.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sistema/www/login.php b/sistema/www/login.php index 76dfb63..5430c5d 100644 --- a/sistema/www/login.php +++ b/sistema/www/login.php @@ -38,6 +38,9 @@ { $_SESSION['usuario'] = $_POST['usuario']; $_SESSION['documento'] = $info[0]['uidnumber'][0]; + // Agregado por culpa de Aldoros + $aux = split('-',$_SESSION['documento']); + $_SESSION['documento'] = (count($aux) == 3) ? $aux[1] : $aux[0]; // Agregado MANAZAR $MECON_DNI= $info[0]['uidnumber'][0]; $MECON_NOMBRE= $info[0]['sn'][0]." ".$info[0]['givenname'][0]; -- 2.43.0