From 37455ff9c1fc0ff0c82e300607fc798686d8ca6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Thu, 14 Aug 2003 20:44:40 +0000 Subject: [PATCH] Cambios a Armar con LOgin --- lib/MECON/Usuario.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/MECON/Usuario.php b/lib/MECON/Usuario.php index 844e248..83329ad 100644 --- a/lib/MECON/Usuario.php +++ b/lib/MECON/Usuario.php @@ -105,16 +105,21 @@ class MECON_Usuario { } else { + + //$login = ereg_replace ("@", "\\\@", $login); $sql = "SELECT dni,nombre from Usuario where login = '$login'"; $result = $db->query($sql); + if ($result->NumRows()>0){ + $row = $result->fetchRow(); $dni = $row[0]; $nombre = $row[1]; $this->dni=$dni; $this->nombre=$nombre; $this->login=$login; + } } } // -X2C @@ -136,7 +141,7 @@ class MECON_Usuario { if(! is_null($login)) { $this->ArmarconLOGIN($login); - $this->buscarUsuarioDNI($dni); + $this->buscarUsuarioDNI($this->getDni()); } } @@ -168,6 +173,17 @@ class MECON_Usuario { } // -X2C +// +X2C Operation 136 + /** + * @return int + * @access public + */ + function getDni() // ~X2C + { + return $this->dni; + } + // -X2C + // +X2C Operation 137 /** * @return string -- 2.43.0