diff options
author | lavigor <lavigor@users.noreply.github.com> | 2016-02-27 20:05:59 +0300 |
---|---|---|
committer | lavigor <lavigor@users.noreply.github.com> | 2016-02-27 20:05:59 +0300 |
commit | 40bd4c8b721bccec4f889a035934fc8db3b66c92 (patch) | |
tree | 0ba9b170f47faf4a2fb580840b23498da579e48e /phpBB/includes/functions.php | |
parent | 4b4584bcd43ed1148869b2c834be127b6b9da880 (diff) | |
download | forums-40bd4c8b721bccec4f889a035934fc8db3b66c92.tar forums-40bd4c8b721bccec4f889a035934fc8db3b66c92.tar.gz forums-40bd4c8b721bccec4f889a035934fc8db3b66c92.tar.bz2 forums-40bd4c8b721bccec4f889a035934fc8db3b66c92.tar.xz forums-40bd4c8b721bccec4f889a035934fc8db3b66c92.zip |
[ticket/14486] Use empty() and move error check.
PHPBB3-14486
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 985b5e8ca3..fca3ddf403 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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) |