Commit db427455 authored by Steven Wittens's avatar Steven Wittens

- Code style

parent d5581d94
......@@ -55,13 +55,13 @@ function drupal_get_content($region = NULL, $delimiter = ' ') {
$content = drupal_set_content();
if (isset($region)) {
if (isset($content[$region]) && is_array($content[$region])) {
return implode ($delimiter, $content[$region]);
return implode($delimiter, $content[$region]);
}
}
else {
foreach (array_keys($content) as $region) {
if (is_array($content[$region])) {
$content[$region] = implode ($delimiter, $content[$region]);
$content[$region] = implode($delimiter, $content[$region]);
}
}
return $content;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment