mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11762] Use the === operator to distinguish "0" from ""
PHPBB3-11762
This commit is contained in:
@@ -413,7 +413,7 @@ function generate_text_for_display($text, $uid, $bitfield, $flags)
|
||||
{
|
||||
static $bbcode;
|
||||
|
||||
if (!$text)
|
||||
if ($text === '')
|
||||
{
|
||||
return '';
|
||||
}
|
||||
@@ -459,7 +459,7 @@ function generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bb
|
||||
$uid = $bitfield = '';
|
||||
$flags = (($allow_bbcode) ? OPTION_FLAG_BBCODE : 0) + (($allow_smilies) ? OPTION_FLAG_SMILIES : 0) + (($allow_urls) ? OPTION_FLAG_LINKS : 0);
|
||||
|
||||
if (!$text)
|
||||
if ($text === '')
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user