From 54fd0d596381a531aa773ff6b0b76c73626c6583 Mon Sep 17 00:00:00 2001
From: Dave Hall <dave.hall@skwashd.com>
Date: Tue, 18 Dec 2012 12:44:40 +1100
Subject: [PATCH] Issue #1727794 by skwashd, eagle82, bleen18, kurtzhong: Fix
 'Array to string conversion' notice

---
 theme/context_reaction_block.theme.inc |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/theme/context_reaction_block.theme.inc b/theme/context_reaction_block.theme.inc
index b794342..5c85b93 100644
--- a/theme/context_reaction_block.theme.inc
+++ b/theme/context_reaction_block.theme.inc
@@ -62,6 +62,15 @@ function theme_context_block_regions_form($vars) {
  * Use placeholder content for script tags that need to be replaced.
  */
 function theme_context_block_script_placeholder($text = '') {
+  // Hack to handle $text being an array.
+  if (is_array($text)) {
+    if (empty($text['text'])) {
+      $text = '';
+    }
+    else {
+      $text = $text['text'];
+    }
+  }
   $message = t('Please reload the page to view this block.');
   return "<div class='script-placeholder'><strong>{$text}</strong><div class='description'>{$message}</div></div>";
 }
-- 
1.7.10.4

