diff options
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php index 6faf4881d..9d29ad291 100644 --- a/inc/template.php +++ b/inc/template.php @@ -152,6 +152,7 @@ function tpl_toc($return=false){ global $ID; global $REV; global $INFO; + global $conf; $toc = array(); if(is_array($TOC)){ @@ -166,7 +167,7 @@ function tpl_toc($return=false){ $tocok = true; } $toc = $meta['description']['tableofcontents']; - if(!$tocok || !is_array($toc) || count($toc) < 3){ + if(!$tocok || !is_array($toc) || !$conf['tocminheads'] || count($toc) < $conf['tocminheads']){ $toc = array(); } }elseif($ACT == 'admin'){ |