aurjson: Only return an error string if utf8_encode returns an empty string.

This allows 0 and '0' values to pass.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Loui Chang 2009-10-23 12:35:02 -04:00
parent 87a8298114
commit 92b19e78ac

View file

@ -145,7 +145,7 @@ class AurJSON {
mysql_free_result($result);
foreach($row as $name => $value) {
$converted = utf8_encode($value);
if ($converted) {
if ($converted != "") {
$row[$name] = $converted;
}
else {