1
0
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:
lavigor 2016-02-27 20:05:59 +03:00
parent 4b4584bcd4
commit 40bd4c8b72

View File

@ -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)