diff --git a/fusion_apply/modules/panels.fusion.inc b/fusion_apply/modules/panels.fusion.inc index d69112f..11bb527 100644 --- a/fusion_apply/modules/panels.fusion.inc +++ b/fusion_apply/modules/panels.fusion.inc @@ -61,8 +61,17 @@ function panels_fusion_apply_preprocess_hook_callback(&$form, $form_state) { * structure and merge the returned classes. */ function panels_fusion_apply_preprocess_index_handler(&$variables) { + + /** + * Verify that we have a pane display id + */ + if (isset($variables['pane']->did)) + $did = $variables['pane']->did; + else + $did = ''; + $index = array(); - $index[] = 'pane__' . $variables['pane']->did . '__' . $variables['pane']->pid; + $index[] = 'pane__' . $did . '__' . $variables['pane']->pid; return $index; } @@ -73,8 +82,17 @@ function panels_fusion_apply_preprocess_index_handler(&$variables) { * contextual links handler. */ function panels_panels_pane_content_alter(&$content, $pane, $display_args, $context) { + + /** + * Verify that we have a pane display id + */ + if (isset($pane->did)) + $did = $pane->did; + else + $did = ''; + if (user_access('edit skin settings')) { - $element = 'pane__' . $pane->did . '__' . $pane->pid; + $element = 'pane__' . $did . '__' . $pane->pid; $content->admin_links[] = array( 'title' => t('Edit skin'), 'href' => 'admin/appearance/fusion/edit/nojs/panels/' . $element . '/configure',