[ticket/9751] Compare $password with empty string instead of casting it to bool

PHPBB3-9751
This commit is contained in:
Andreas Fischer 2011-03-25 23:11:15 +01:00
parent dba8cf12fd
commit 7cc32d3843

View file

@ -1605,7 +1605,7 @@ function validate_password($password)
{ {
global $config, $db, $user; global $config, $db, $user;
if (!$password) if ($password === '')
{ {
return false; return false;
} }