Commit aa144227 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-2007: removing undefined index error

parent 579f2e8b
......@@ -309,7 +309,7 @@ function uw_virtual_site_homepage_page_alter(&$page) {
if (isset($page['header_second']['boxes_site_info']['content']['#markup'])) {
$page['header_second']['boxes_site_info']['content']['#markup'] = preg_replace('/<p>(.*)<a(.*)<\/a>/s', '<h2>' . $page['uw-virtual-site-homepage']['field_uw_credentials'][0]['#markup'] . '</h2>', $page['header_second']['boxes_site_info']['content']['#markup']);
}
elseif ($page['header_second']['boxes_site_info']['#markup']) {
elseif (isset($page['header_second']['boxes_site_info']['#markup']) && $page['header_second']['boxes_site_info']['#markup']) {
$page['header_second']['boxes_site_info']['#markup'] = preg_replace('/<p>(.*)<a(.*)<\/a>/s', '<h2>' . $page['uw-virtual-site-homepage']['field_uw_credentials'][0]['#markup'] . '</h2>', $page['header_second']['boxes_site_info']['#markup']);
}
}
......
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