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:
parent
e84f5db4f5
commit
401e9466bf
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user