From d659e0aaf9def860c2102a747951e11338b248c9 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 14 Dec 2015 21:29:39 +0100 Subject: [PATCH] We have to print/echo when outputting json (thanks hannes) --- lib/action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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': -- 2.39.2