From 14acd52667dd1146c925bdfcb4a4563f6bf853e9 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 25 Oct 2018 16:47:55 -0700 Subject: [PATCH] Fix [] operator not supported for strings in kalatheme_process_page() Fixes #311 This fix was provided by @labboy0276 over at #311 --- template.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/template.php b/template.php index e56550e..b5057cd 100644 --- a/template.php +++ b/template.php @@ -162,6 +162,9 @@ function kalatheme_process_page(&$variables) { // Add local actions as the last item in the local tasks. if (!empty($variables['action_links'])) { + if (empty($variables['tabs']['#primary'])) { + $variables['tabs']['#primary'] = array(); + } $variables['tabs']['#primary'][] = array( '#theme' => 'menu_local_actions', '#menu_actions' => $variables['action_links'],