1
0
Fork 0

Avoid empty user export when there are UTF8 problems

This commit is contained in:
Michael 2017-11-26 13:58:24 +00:00
parent e82bbc75cd
commit f059b33390

View file

@ -126,7 +126,7 @@ function uexport_account($a) {
); );
//echo "<pre>"; var_dump(json_encode($output)); killme(); //echo "<pre>"; var_dump(json_encode($output)); killme();
echo json_encode($output); echo json_encode($output, JSON_PARTIAL_OUTPUT_ON_ERROR);
} }
/** /**
@ -154,6 +154,6 @@ function uexport_all(App $a) {
); );
$output = array('item' => $r); $output = array('item' => $r);
echo json_encode($output) . "\n"; echo json_encode($output, JSON_PARTIAL_OUTPUT_ON_ERROR). "\n";
} }
} }