Skip to content

Commit

Permalink
[ticket/14486] Use empty() and move error check.
Browse files Browse the repository at this point in the history
PHPBB3-14486
  • Loading branch information
lavigor committed Feb 27, 2016
1 parent 4b4584b commit 40bd4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2848,7 +2848,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
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
if ($admin)
Expand Down

0 comments on commit 40bd4c8

Please sign in to comment.