Commit 5bd98cdb authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Add check that block ID exists before attempting to use it, to avoid conflict...

Add check that block ID exists before attempting to use it, to avoid conflict with the OFIS search block in uw_ofis_eng
parent ce91a018
......@@ -28,7 +28,7 @@ function uw_fdsu_theme_resp_page_alter(&$page) {
*/
function uw_fdsu_theme_resp_preprocess_block(&$variables) {
// Add @aria-label to responsive_menu_combined block.
if ($variables['block']->bid === 'responsive_menu_combined-responsive_menu_combined') {
if (!empty($variables['block']->bid) && $variables['block']->bid === 'responsive_menu_combined-responsive_menu_combined') {
$variables['attributes_array']['aria-label'] = 'Main';
}
}
......
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