X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/7c2cd1e9daaa5cd4337d1be3fcf4e5ca3027773b..03dae913ea4780a26c5f0b8af998507c5427b1f9:/lib/SAMURAI/Usuario.php?ds=inline diff --git a/lib/SAMURAI/Usuario.php b/lib/SAMURAI/Usuario.php index 2522656..a8a3a5a 100644 --- a/lib/SAMURAI/Usuario.php +++ b/lib/SAMURAI/Usuario.php @@ -196,7 +196,7 @@ class SAMURAI_Usuario { $this->setLogin($login); $this->_idSistema = $idSistema; if (!is_null($login)) { - $tmp =& new MECON_Usuario(null, $login); + $tmp =& new MECON_Usuario($db, null, $login); $this->setNrodoc($tmp->getDni()); $this->setNombre($tmp->getNombre()); $this->_obtenerDatosDb(); @@ -401,7 +401,7 @@ class SAMURAI_Usuario { */ function verificarLogin() // ~X2C { - $usu = new MECON_Usuario(); + $usu = new MECON_Usuario($this->_db); $tmp = $usu->verificarLogin($this->getLogin()); if ($tmp) { if (PEAR::isError($tmp)) { @@ -457,7 +457,7 @@ class SAMURAI_Usuario { { $sql = parse_ini_file(dirname(__FILE__) . '/Usuario/consultas.ini', true); - $usu = new MECON_Usuario(); + $usu = new MECON_Usuario($db); $tmp = $usu->verificarLogin($login); if ($tmp) { if (PEAR::isError($tmp)) {