Skip to content

Commit

Permalink
Fixes #5144 When the response being dispatched is an array, `var_expo…
Browse files Browse the repository at this point in the history
…rt` it instead of `echo`
  • Loading branch information
mattab committed May 11, 2014
1 parent acb1bc2 commit 97402e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/dispatch.php
Expand Up @@ -33,7 +33,9 @@
$controller->init();
$response = $controller->dispatch();

if (!is_null($response)) {
if(is_array($response)) {
var_export($response);
} elseif (!is_null($response)) {
echo $response;
}
}

0 comments on commit 97402e9

Please sign in to comment.