akeeba / engage

Akeeba Engage - Comments for Joomla!™ articles made easy
GNU General Public License v3.0
16 stars 10 forks source link

Number "0" is not displayed in mod_engage_latest #319

Closed NicolasDerumigny closed 4 months ago

NicolasDerumigny commented 4 months ago

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!

nikosdion commented 4 months ago

Thank you