summaryrefslogtreecommitdiffstats
path: root/web/lib/aurjson.class.php
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-10-23 18:35:02 +0200
committerLoui Chang <louipc.ist@gmail.com>2009-10-23 18:35:02 +0200
commit92b19e78ac4e21d9a3b9022198a118d8dc13f5d4 (patch)
treedbb5600f85d389a0f2d33357e7b052679fd5216b /web/lib/aurjson.class.php
parent87a8298114d961f49454ad0a02d2a4526f7af9e2 (diff)
downloadaur-92b19e78ac4e21d9a3b9022198a118d8dc13f5d4.tar.gz
aur-92b19e78ac4e21d9a3b9022198a118d8dc13f5d4.tar.xz
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>
Diffstat (limited to 'web/lib/aurjson.class.php')
-rw-r--r--web/lib/aurjson.class.php2
1 files changed, 1 insertions, 1 deletions
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 {