mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue