Skip to content

Commit 14acd52

Browse files
committed
Fix [] operator not supported for strings in kalatheme_process_page()
Fixes #311 This fix was provided by @labboy0276 over at #311
1 parent b197725 commit 14acd52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

template.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ function kalatheme_process_page(&$variables) {
162162

163163
// Add local actions as the last item in the local tasks.
164164
if (!empty($variables['action_links'])) {
165+
if (empty($variables['tabs']['#primary'])) {
166+
$variables['tabs']['#primary'] = array();
167+
}
165168
$variables['tabs']['#primary'][] = array(
166169
'#theme' => 'menu_local_actions',
167170
'#menu_actions' => $variables['action_links'],

0 commit comments

Comments
 (0)