diff --git a/bootstrap_barrio.theme b/bootstrap_barrio.theme index a37773e11d9e4129f781efcd7f1bccac72f7ad59..a85f9e7868fd88a735b5690f81a5c9693f5d3ed9 100644 --- a/bootstrap_barrio.theme +++ b/bootstrap_barrio.theme @@ -276,7 +276,8 @@ function bootstrap_barrio_preprocess_page(&$variables) { * Implements hook_preprocess_HOOK() for page templates. */ function bootstrap_barrio_preprocess_page_title(&$variables) { - if( !strlen($variables['title']) ) unset($variables['title']); + if ( !isset($variables['title']) ) return; + if ( !strlen($variables['title']) ) unset($variables['title']); // Since the title and the shortcut link are both block level elements, // positioning them next to each other is much simpler with a wrapper div. if (!empty($variables['title_suffix']['add_or_remove_shortcut']) && $variables['title']) {