mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-05 14:04:57 +02:00
[ticket/14486] Use empty() and move error check.
PHPBB3-14486
This commit is contained in:
parent
4b4584bcd4
commit
40bd4c8b72
@ -2848,7 +2848,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
|
|||||||
trigger_error('NO_AUTH_ADMIN');
|
trigger_error('NO_AUTH_ADMIN');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($request->is_set_post('login') || ($request->is_set('login') && $request->variable('login', '') == 'external')) && !$err)
|
if (empty($err) && ($request->is_set_post('login') || ($request->is_set('login') && $request->variable('login', '') == 'external')))
|
||||||
{
|
{
|
||||||
// Get credential
|
// Get credential
|
||||||
if ($admin)
|
if ($admin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user