This commit is contained in:
Naomi 2013-05-10 17:44:50 -04:00
parent da46757e28
commit 82945038d5
3 changed files with 23 additions and 23 deletions

View file

@ -46,9 +46,9 @@ class Application_Model_Subjects
public static function getLoginAttempts($login)
{
$sql = "SELECT login_attempts FROM cc_subjs WHERE login=:login";
$map = array(":login" => $login);
$res = Application_Common_Database::prepareAndExecute($sql, $map,
$map = array(":login" => $login);
$res = Application_Common_Database::prepareAndExecute($sql, $map,
Application_Common_Database::COLUMN);
return ($res !== false) ? $res : 0;