Skip to content
Snippets Groups Projects
Commit 8ebde830 authored by Ryan Szrama's avatar Ryan Szrama Committed by Ryan Szrama
Browse files

Issue #3266601 by hey_germano, rszrama: Notice: Trying to access array offset...

Issue #3266601 by hey_germano, rszrama: Notice: Trying to access array offset on value of type bool in commerce_kickstart_taxonomy_preprocess_page()
parent ef813b65
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ function commerce_kickstart_taxonomy_preprocess_page(&$variables) {
// Remove collection_taxonomy_term view title.
$router_item = menu_get_item(current_path());
$machine_name = variable_get('commerce_kickstart_demo_store', FALSE) ? 'collection' : 'product_category';
if ($router_item['path'] == $machine_name . '/%') {
if (!empty($router_item['path']) && $router_item['path'] == $machine_name . '/%') {
$variables['title'] = '';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment