From 7f01d4f02ba2b7b54fa529574245c493058ff4f5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sun, 23 Oct 2005 09:47:53 +0000 Subject: [PATCH] - Patch #34907 by gtcaz: "Array" printed in each region. --- includes/common.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index f3e95a2fecbc..7eb689261e28 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -51,10 +51,12 @@ function drupal_set_content($region = null, $data = null) { * @param $delimiter * Content to be inserted between exploded array elements. */ -function drupal_get_content($region = null, $delimiter = ' ') { +function drupal_get_content($region = NULL, $delimiter = ' ') { $content = drupal_set_content(); - if (isset($region) && isset($content[$region]) && is_array($content[$region])) { + if (isset($region)) { + if (isset($content[$region]) && is_array($content[$region])) { return implode ($delimiter, $content[$region]); + } } else { foreach (array_keys($content) as $region) { -- GitLab