summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2011-07-17 17:34:04 (GMT)
committer Joao Ventura2011-07-17 17:34:04 (GMT)
commit2a46e42c556e5a6b405fa0573606e649573e124f (patch)
tree27d90f210eb6c0f3d3bd42c89c3f4e477e1035c9
parent07c7fcb4cc2dd428c84d537be8d5f218222c978e (diff)
#1184696: fix system pages that displayed only 'Array'.
-rw-r--r--print.pages.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/print.pages.inc b/print.pages.inc
index 2614847..ff5e4c8 100644
--- a/print.pages.inc
+++ b/print.pages.inc
@@ -596,6 +596,9 @@ function _print_generate_path($path, $format = PRINT_HTML_FORMAT, $teaser = FALS
// Adapted from index.php.
$node = new stdClass();
$node->body = menu_execute_active_handler($path, FALSE);
+ if (is_array($node->body)) {
+ $node->body = drupal_render($node->body);
+ }
if (is_int($node->body)) {
switch ($node->body) {