aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-03-25 23:11:15 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-04-01 15:10:29 +0200
commit7cc32d3843afbb754b3de101bda2267012647c2f (patch)
treeabd221e5989dda3d355319781f4c227624c1aa01 /phpBB/includes/functions_user.php
parentdba8cf12fd2573edc9722076770140c7b4024f6b (diff)
downloadforums-7cc32d3843afbb754b3de101bda2267012647c2f.tar
forums-7cc32d3843afbb754b3de101bda2267012647c2f.tar.gz
forums-7cc32d3843afbb754b3de101bda2267012647c2f.tar.bz2
forums-7cc32d3843afbb754b3de101bda2267012647c2f.tar.xz
forums-7cc32d3843afbb754b3de101bda2267012647c2f.zip
[ticket/9751] Compare $password with empty string instead of casting it to bool
PHPBB3-9751
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index c51e571e31..6ac6317dd2 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1605,7 +1605,7 @@ function validate_password($password)
{
global $config, $db, $user;
- if (!$password)
+ if ($password === '')
{
return false;
}