Commit 2c0ba5e9 authored by l26yan's avatar l26yan
Browse files

RT#927424 Fix undefined offset issue

parent 76a1baf8
......@@ -1139,7 +1139,7 @@ function uw_ct_event_preprocess_html(&$variables) {
$variables['page']['#children'] = str_replace($search, $replace, $variables['page']['#children']);
}
if (isset($path[0]) && $path[0] == 'events' && $path[1] !== 'calendar') {
if (isset($path[0]) && $path[0] == 'events' && isset($path[1]) && $path[1] !== 'calendar') {
$type_tid = uw_ct_event_get_tid_from_machine_name('uw_event_type');
$using_type_tid = uw_ct_event_get_using_taxonomy_term('uw_event_type');
......
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