diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index f3e95a2fe..7eb689261 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) { |