Some typos fixed
[mailer.git] / inc / libs / user_functions.php
index fd534b8128a0d334ecba765c7842bee976f9669e..1e802cdb4de52b50b6f7b7b08cbccbdf0904b711 100644 (file)
@@ -38,7 +38,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Add links for selecting some users
-function alpha($sortby, $colspan, $return=false) {
+function alpha ($sortby, $colspan, $return=false) {
        global $_CONFIG;
        if (empty($_GET['offset'])) $_GET['offset'] = 0;
        $ADD = "&page=".SQL_ESCAPE($_GET['page'])."&offset=".SQL_ESCAPE($_GET['offset']);
@@ -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!
@@ -365,7 +365,7 @@ function USER_DO_LOGIN ($uid, $passwd) {
                }
        } elseif ((($probe_nickname) && (!empty($uid2))) || ($uid2 == $uid)) {
                // Other account status?
-               // @TODO Can this query be saved???
+               // @TODO Can this query be merged with above query?
                $result = SQL_QUERY_ESC("SELECT status FROM `"._MYSQL_PREFIX."_user_data` WHERE userid=%s LIMIT 1",
                        array($uid), __FILE__, __LINE__);