aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth/auth_db.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-06-12 11:33:55 +0200
committerNils Adermann <naderman@naderman.de>2011-06-12 11:33:55 +0200
commitef977abe596fdc926e84e10fd994278665d38417 (patch)
tree9619ded64bfb3d9eda3f969ee43f79287fc53f59 /phpBB/includes/auth/auth_db.php
parentcd3d23810f844b529f304cb7062ffe65cc17e4e3 (diff)
downloadforums-ef977abe596fdc926e84e10fd994278665d38417.tar
forums-ef977abe596fdc926e84e10fd994278665d38417.tar.gz
forums-ef977abe596fdc926e84e10fd994278665d38417.tar.bz2
forums-ef977abe596fdc926e84e10fd994278665d38417.tar.xz
forums-ef977abe596fdc926e84e10fd994278665d38417.zip
[ticket/9892] count is a keyword in firebird, so renaming this alias
PHPBB3-9892
Diffstat (limited to 'phpBB/includes/auth/auth_db.php')
-rw-r--r--phpBB/includes/auth/auth_db.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/auth/auth_db.php b/phpBB/includes/auth/auth_db.php
index 02c9386f33..fe3ea30b2a 100644
--- a/phpBB/includes/auth/auth_db.php
+++ b/phpBB/includes/auth/auth_db.php
@@ -72,7 +72,7 @@ function login_db($username, $password, $ip = '', $browser = '', $forwarded_for
if (($ip && !$config['ip_login_limit_use_forwarded']) ||
($forwarded_for && $config['ip_login_limit_use_forwarded']))
{
- $sql = 'SELECT COUNT(attempt_id) AS count
+ $sql = 'SELECT COUNT(attempt_id) AS attempts
FROM ' . LOGIN_ATTEMPT_TABLE . '
WHERE attempt_time > ' . (time() - (int) $config['ip_login_limit_time']);
if ($config['ip_login_limit_use_forwarded'])
@@ -85,7 +85,7 @@ function login_db($username, $password, $ip = '', $browser = '', $forwarded_for
}
$result = $db->sql_query($sql);
- $attempts = (int) $db->sql_fetchfield('count');
+ $attempts = (int) $db->sql_fetchfield('attempts');
$db->sql_freeresult($result);
$attempt_data = array(