mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11579] Remove unnecessary globals from validate_password()
The globals $db and $user are not used in that function. PHPBB3-11579
This commit is contained in:
parent
3f657bc63e
commit
6d5da402ec
1 changed files with 1 additions and 1 deletions
|
@ -1554,7 +1554,7 @@ function validate_username($username, $allowed_username = false)
|
|||
*/
|
||||
function validate_password($password)
|
||||
{
|
||||
global $config, $db, $user;
|
||||
global $config;
|
||||
|
||||
if ($password === '' || $config['pass_complex'] === 'PASS_TYPE_ANY')
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue