[Solar-talk] bounding zero

Rodrigo Moraes rodrigo.moraes at gmail.com
Mon Mar 12 10:16:45 PDT 2007


The solution, pointed by Antti, was to change the comparison to check
the type as well:

    if ($val !== SOLAR_IGNORE_PARAM) {
       ...
    }

Then you can bound int(0).

I really don't understand why if you just compare $val !=
SOLAR_IGNORE_PARAM, and $val is int(0), the result is false. Really
strange. :-|

rodrigo


More information about the solar-talk mailing list