quickform exportValues never returns null ?

From: Date: Sun, 22 Aug 2004 10:11:14 +0000
Subject: quickform exportValues never returns null ?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14212@lists.php.net to get a copy of this message
Hi, It seems that exportValues never returns null for text inputs, even when no value was entered. That's not such a bit deal, I thought I can overcome this by writing a filter: function emptyStringsToNull($value) {
       return ($value == '') ? null : $value;
} But after running that, exportValues still doesn't return nulls, only empty strings (''); Is this normal behaviour? Should I just run the filter over the exportValues to get nulls instead of empty strings? Thanks! Jeroen

« previous php.pear.general (#14212) next »