Closed eduardomozart closed 6 months ago
Useful fix. Still this looks a bit as a special way of checking for 0 values. DokuWiki has also the function blank()
. Probably it is more readable if you use that blank()
function, such that the function name tells directly what the intent is?
Hello @Klap-in,
I tested using the blank()
function it seems to be working as expected. I replaced the code to use it with a @
to disable PHP warnings when display_errors
directive is set and text is empty.
The following table:
Was generating the following ODT output:
Notice that the last column ("S") contains no value. This occurs because PHP
empty()
function assumes that0
(int or str) is empty, so it doesn't print out on screen. Here's the ODT output after applying this fix: