Commit dd9cfda2 authored by git's avatar git Committed by Nicholas Thompson
Browse files

#1517640 - Fixing E_NOTICE error for missing display handler property.

parent e35bb445
......@@ -46,7 +46,7 @@ function views_page_title_pattern_alter(&$pattern, &$types) {
}
}
// This is a view with no args provided, or the specific arg has no title - lets use the base display title
elseif ($view->display_handler->display->display_plugin == 'page_with_page_title') {
elseif (isset($view->display_handler) && $view->display_handler->display->display_plugin == 'page_with_page_title') {
$pattern = $view->display_handler->get_option('page_title_pattern');
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment