1
0
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:
s9e
2013-08-03 12:20:52 +02:00
parent b7f97cae79
commit 8a02db317e
2 changed files with 38 additions and 2 deletions

View File

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