Project

General

Profile

« Previous | Next » 

Revision 6f6f79f6

Added by Katja Luther almost 5 years ago

ref #8182: fix error ín cdm_dataportal_preprocess_menu_local_tasks()

View differences:

modules/cdm_dataportal/includes/pages.inc
1070 1070
  $hidden_tabs = taxon_page_tabs_hidden_add();
1071 1071

  
1072 1072
  if (!variable_get(CDM_SEARCH_BLAST_ENABLED)) {
1073
      foreach ($variables['primary'] as $key => &$element) {
1074
          if ($element['#link']['path'] == 'cdm_dataportal/search/blast' ) {
1075
            // remove the tab
1076
            unset($variables['primary'][$key]);
1077
          }
1073
      if (is_array($variables['primary'])) {
1074
          foreach ($variables['primary'] as $key => &$element) {
1075
              if ($element['#link']['path'] == 'cdm_dataportal/search/blast') {
1076
                  // remove the tab
1077
                  unset($variables['primary'][$key]);
1078
              }
1078 1079

  
1080
          }
1079 1081
      }
1080 1082
  }
1081 1083
  if (is_array($variables['primary'])) {

Also available in: Unified diff