Commit 6e094d85 authored by Gregory Perry's avatar Gregory Perry
Browse files

Issue #1507630 by lotyrin: account for empty view mode settings.

parent 7e01aec7
......@@ -352,7 +352,7 @@ function taxonomy_display_taxonomy_term_page($term) {
// Ensure custom display settings for taxonomy term page are enabled before
// altering.
$view_mode = field_view_mode_settings('taxonomy_term', $term->vocabulary_machine_name);
if (!$view_mode['full']['custom_settings']) {
if (empty($view_mode['full']['custom_settings'])) {
module_load_include('inc', 'taxonomy', 'taxonomy.pages');
return taxonomy_term_page($term);
Markdown is supported
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