1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-03 14:17:56 +02:00

[ticket/11538] Compare to '' instead of using empty(), so '0' does not pass.

PHPBB3-11538
This commit is contained in:
Andreas Fischer 2013-05-26 17:51:41 +02:00
parent e84f5db4f5
commit 401e9466bf

View File

@ -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');
}