diff options
author | s9e <s9e.dev@gmail.com> | 2013-08-03 12:20:52 +0200 |
---|---|---|
committer | s9e <s9e.dev@gmail.com> | 2013-08-03 12:20:52 +0200 |
commit | 8a02db317ef3c2d3c4e3dcfc5f8b85397f7ebb4a (patch) | |
tree | 22a8067bb6cdd29c08d83193b3f6ebcbc780249f /phpBB/includes/functions_content.php | |
parent | b7f97cae792af90e9192570c17d6d91fc901e9ca (diff) | |
download | forums-8a02db317ef3c2d3c4e3dcfc5f8b85397f7ebb4a.tar forums-8a02db317ef3c2d3c4e3dcfc5f8b85397f7ebb4a.tar.gz forums-8a02db317ef3c2d3c4e3dcfc5f8b85397f7ebb4a.tar.bz2 forums-8a02db317ef3c2d3c4e3dcfc5f8b85397f7ebb4a.tar.xz forums-8a02db317ef3c2d3c4e3dcfc5f8b85397f7ebb4a.zip |
[ticket/11762] Use the === operator to distinguish "0" from ""
PHPBB3-11762
Diffstat (limited to 'phpBB/includes/functions_content.php')
-rw-r--r-- | phpBB/includes/functions_content.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index b7650ecd6a..6213d2fd24 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -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; } |