]> git.mxchange.org Git - friendica.git/commitdiff
Avoid empty user export when there are UTF8 problems
authorMichael <heluecht@pirati.ca>
Sun, 26 Nov 2017 13:58:24 +0000 (13:58 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 26 Nov 2017 13:58:24 +0000 (13:58 +0000)
mod/uexport.php

index 2ada9bc28923fe0d9a65575d3174bf4f3dc545c1..5a897f4abe23355a4aab37f69b82155f7a5dbdd3 100644 (file)
@@ -126,7 +126,7 @@ function uexport_account($a) {
        );
 
        //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);
-               echo json_encode($output. "\n";
+               echo json_encode($output, JSON_PARTIAL_OUTPUT_ON_ERROR). "\n";
        }
 }