[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:
Marc Alexander 2013-05-30 16:09:06 +02:00
parent 3f657bc63e
commit 6d5da402ec

View file

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