From: Martín Marrese Date: Fri, 6 Feb 2004 21:05:59 +0000 (+0000) Subject: BugFixes en Usuario.php. X-Git-Tag: svn_import~112 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/4d0f093434e5372d80da7fc93d21bdc6025e03f6 BugFixes en 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; }