diff --git a/toc_api.module b/toc_api.module index 62aa9c33b15789abe86c8d8beaf380bc8a86e49d..4f72f5743098ddb78ae67b6a9dbfea2282e45856 100755 --- a/toc_api.module +++ b/toc_api.module @@ -73,7 +73,7 @@ function template_preprocess_toc_header(&$variables) { $options = $toc->getOptions(); $variables['options'] = $options; $variables['header_options'] = $options['headers'][$item['tag']]; - $variables['header_options']['display_number'] = in_array($variables['header_options']['number_type'], ['decimal', 'lower-alpha', 'upper-alpha', 'lower-roman', 'upper-roman']); + $variables['header_options']['display_number'] = $options['number_path'] && in_array($variables['header_options']['number_type'], ['decimal', 'lower-alpha', 'upper-alpha', 'lower-roman', 'upper-roman']); $variables['attributes']['id'] = $variables['id']; $variables['attributes'] = new Attribute($variables['attributes']);