Commit d659e0aa authored by mmn's avatar mmn

We have to print/echo when outputting json (thanks hannes)

parent 5b847eff
......@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment