From 92b19e78ac4e21d9a3b9022198a118d8dc13f5d4 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Fri, 23 Oct 2009 12:35:02 -0400 Subject: 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 --- web/lib/aurjson.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib') diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php index 251203af..a5b3f9e0 100644 --- a/web/lib/aurjson.class.php +++ b/web/lib/aurjson.class.php @@ -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 { -- cgit v1.2.3-24-g4f1b