From 97402e918b0af08396d80a33458d8b421332dff7 Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Mon, 12 May 2014 10:31:08 +1200 Subject: [PATCH] Fixes #5144 When the response being dispatched is an array, `var_export` it instead of `echo` --- core/dispatch.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/dispatch.php b/core/dispatch.php index 7b5838db58..6d6b55a208 100644 --- a/core/dispatch.php +++ b/core/dispatch.php @@ -33,7 +33,9 @@ if (PIWIK_ENABLE_DISPATCH) { $controller->init(); $response = $controller->dispatch(); - if (!is_null($response)) { + if(is_array($response)) { + var_export($response); + } elseif (!is_null($response)) { echo $response; } } -- GitLab