mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/9892] count is a keyword in firebird, so renaming this alias
PHPBB3-9892
This commit is contained in:
parent
cd3d23810f
commit
ef977abe59
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ function login_db($username, $password, $ip = '', $browser = '', $forwarded_for
|
||||||
if (($ip && !$config['ip_login_limit_use_forwarded']) ||
|
if (($ip && !$config['ip_login_limit_use_forwarded']) ||
|
||||||
($forwarded_for && $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 . '
|
FROM ' . LOGIN_ATTEMPT_TABLE . '
|
||||||
WHERE attempt_time > ' . (time() - (int) $config['ip_login_limit_time']);
|
WHERE attempt_time > ' . (time() - (int) $config['ip_login_limit_time']);
|
||||||
if ($config['ip_login_limit_use_forwarded'])
|
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);
|
$result = $db->sql_query($sql);
|
||||||
$attempts = (int) $db->sql_fetchfield('count');
|
$attempts = (int) $db->sql_fetchfield('attempts');
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$attempt_data = array(
|
$attempt_data = array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue