Skip to content

Commit 5466aa6

Browse files
authored
Merge pull request #312 from drupalprojects/fix/JohnO/ktheme-311--domination
Fix [] operator not supported for strings in kalatheme_process_page()
2 parents b197725 + 14acd52 commit 5466aa6

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)