mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
87a8298114
commit
92b19e78ac
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class AurJSON {
|
||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
foreach($row as $name => $value) {
|
foreach($row as $name => $value) {
|
||||||
$converted = utf8_encode($value);
|
$converted = utf8_encode($value);
|
||||||
if ($converted) {
|
if ($converted != "") {
|
||||||
$row[$name] = $converted;
|
$row[$name] = $converted;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue