Posted by rynato on 12/28/07 17:33
uh, nevermind. I figured it out. For posterity's sake here's the
solution:
instead of:
if ($value)
I changed that conditional to:
if ($value != null || $value === 0)
the value was passed into the function correctly (it still equalled 0)
but for some reason 'if ($value)' was not sufficient for PHP to
distinguish between a value of 0 and no value at all. Can someone
explain this distinction to me? Thanks.
Navigation:
[Reply to this message]
|