Some typos fixed
[mailer.git] / inc / libs / user_functions.php
index 7592bbc..1e802cd 100644 (file)
@@ -355,9 +355,9 @@ function USER_DO_LOGIN ($uid, $passwd) {
                                // Cookies not setable!
                                $URL = "modules.php?module=index&what=login&login=".CODE_NO_COOKIES;
                        }
-               } elseif (GET_EXT_VERSION("sql_patches") >= "0.4.7") {
+               } elseif (GET_EXT_VERSION("sql_patches") >= "0.6.1") {
                        // Update failture counter
-                       SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET login_failtures=login_failtures+1,last_failture=NOW() WHERE userid=%s LIMIT 1",
+                       SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET login_failures=login_failures+1,last_failure=NOW() WHERE userid=%s LIMIT 1",
                                array($uid), __FILE__, __LINE__);
 
                        // Wrong password!