-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
3.0.11
-
None
generate_text_for_display generates a blank text if the string given is '0'
here is the original topic:
https://www.phpbb.com/community/viewtopic.php?f=71&t=2165721&p=13201640#p13201648
and here the summary:
[quote="A_Jelly_Doughnut"]That would be a bug in generate_text_for_display.
[code]function generate_text_for_display($text, $uid, $bitfield, $flags)
{
static $bbcode;
if (!$text)
{ return ''; }[/code]
In PHP:
[code]
<?php
$str = '0';
if (!$str)
[/code]
will print "String evaluates to false.
So the code in generate text_for_display is simply returning a blank string.
Feel free to file a bug in the phpBB tracker: http://tracker.phpbb.com/[/quote]
- duplicates
-
PHPBB-11762 generate_text_for_display() treats "0" as an empty string
- Closed
- is duplicated by
-
PHPBB-11216 generate_text_for_display() improper auto-typecast
- Closed
- was obsoleted by solution of
-
PHPBB-11762 generate_text_for_display() treats "0" as an empty string
- Closed