From: Mikael Nordfeldth Date: Mon, 14 Dec 2015 20:29:39 +0000 (+0100) Subject: We have to print/echo when outputting json (thanks hannes) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d1105fe736849d1de27b074dd2a5b7ffd4ef7f6;p=quix0rs-gnu-social.git We have to print/echo when outputting json (thanks hannes) --- diff --git a/lib/action.php b/lib/action.php index 4a815c1483..c2d60e11e9 100644 --- a/lib/action.php +++ b/lib/action.php @@ -1490,7 +1490,7 @@ class Action extends HTMLOutputter // lawsuit } $this->initDocument('json'); $error_array = array('error' => $msg, 'request' => $_SERVER['REQUEST_URI']); - $this->text(json_encode($error_array)); + print(json_encode($error_array)); $this->endDocument('json'); break; case 'text':