Open GoogleCodeExporter opened 8 years ago
If you change line 633 of version 2.21 from:
if ($val=='') { $val=" "; }
to:
if ($val==='') { $val=" "; }
the strict comparison will only match an empty string(''). If you change it to:
if ($val==='' && !$val===0) { $val=" "; }
then it should match '', FALSE and NULL but not 0. I believe the second option
is
more robust. You can decide for yourself by looking at php's comparison tables
at
http://php.net/manual/en/types.comparisons.php
I don't have answers for your other issues though.
Original comment by RoamingA...@gmail.com
on 4 Oct 2009 at 12:36
Patch for the zero issue.
Original comment by d...@cimpress.com
on 6 Jul 2010 at 7:09
Attachments:
Original issue reported on code.google.com by
vve...@hotmail.it
on 15 May 2009 at 1:11Attachments: