X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/691acc8ae61e278e991e46e3ada02e1b6df8171a..eadc9e63372dde805c0a1b0ad7db6aaa113995cf:/lib/MECON/Usuario.php diff --git a/lib/MECON/Usuario.php b/lib/MECON/Usuario.php index 0558d8a..85ee8ba 100644 --- a/lib/MECON/Usuario.php +++ b/lib/MECON/Usuario.php @@ -252,9 +252,9 @@ class MECON_Usuario { * @access public */ function verificarLogin($login) { - $login = $this->_db->quote($login); - $sql = "SELECT count(*) as usuario.cuenta FROM usuario.Usuario WHERE login = '$login'"; - $result = $db->query($sql); + $sql = "SELECT count(*) as cuenta FROM usuario.Usuario WHERE login = " + . $this->_db->quote($login) ; + $result = $this->_db->query($sql); if (PEAR::isError($result)) { return $result; }