Commit 7f01d4f0 authored by Dries's avatar Dries

- Patch #34907 by gtcaz: "Array" printed in each region.

parent fa11f2b9
......@@ -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) {
......
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