Closed NicolasDerumigny closed 4 months ago
Comment with a sentence containing " 0 " such as "There are 0 reason for it to bug". Look at the latest comment module.
Latest comments module content shows "There are 0 reason for it to bug"
Latest comments module content shows "There are reason for it to bug"
This line cause the issue. as the filter removes "0". Change the line to return !empty($x) || $x === "0"; and the bug is solved.
return !empty($x) || $x === "0";
Thanks, PHP!
Thank you
Steps to reproduce the issue
Comment with a sentence containing " 0 " such as "There are 0 reason for it to bug". Look at the latest comment module.
Expected result
Latest comments module content shows "There are 0 reason for it to bug"
Actual result
Latest comments module content shows "There are reason for it to bug"
Troubleshooting already performed
This line cause the issue. as the filter removes "0". Change the line to
return !empty($x) || $x === "0";
and the bug is solved.System information
Mandatory information
Good to have information
Additional comments
Thanks, PHP!