Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: [] operator not supported for strings in kalatheme_process_page() (line 165 of /sites/all/themes/kalatheme/template.php). #311

Closed
labboy0276 opened this issue Oct 25, 2018 · 1 comment · Fixed by #312

Comments

@labboy0276
Copy link

labboy0276 commented Oct 25, 2018

php 7.1 sadness. The fix is to change this:

  // Add local actions as the last item in the local tasks.
  if (!empty($variables['action_links'])) {
    $variables['tabs']['#primary'][] = array(
      '#theme' => 'menu_local_actions',
      '#menu_actions' => $variables['action_links'],
      '#attributes' => $dropdown_attributes,
    );
    $variables['action_links'] = FALSE;
  }

to:

  // 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'],
      '#attributes' => $dropdown_attributes,
    );
    $variables['action_links'] = FALSE;
  }
@RobLoach
Copy link
Member

fe1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants