aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-05-26 17:51:41 +0200
committerAndreas Fischer <bantu@phpbb.com>2013-05-26 19:24:09 +0200
commit401e9466bffb3c312228a99aa6a63a15342fe79b (patch)
tree8abc4c0fd64e71fba09b46a4b70caec4bb0dc756 /phpBB/includes/functions_user.php
parente84f5db4f5f24a2cfb06dc89fc371685e95380fb (diff)
downloadforums-401e9466bffb3c312228a99aa6a63a15342fe79b.tar
forums-401e9466bffb3c312228a99aa6a63a15342fe79b.tar.gz
forums-401e9466bffb3c312228a99aa6a63a15342fe79b.tar.bz2
forums-401e9466bffb3c312228a99aa6a63a15342fe79b.tar.xz
forums-401e9466bffb3c312228a99aa6a63a15342fe79b.zip
[ticket/11538] Compare to '' instead of using empty(), so '0' does not pass.
PHPBB3-11538
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 61972c3876..6b6a9b1f9f 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1910,7 +1910,7 @@ function validate_jabber($jid)
*/
function phpbb_validate_hex_colour($colour, $optional = false)
{
- if (empty($colour))
+ if ($colour === '')
{
return (($optional) ? false : 'WRONG_DATA');
}