X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/691acc8ae61e278e991e46e3ada02e1b6df8171a..117ab083d0597d84a1f8f79cf76d8260590d4b3c:/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; }