diff options
-rw-r--r-- | inc/parser/xhtml.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 8f40bb5db..5390ae843 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -91,7 +91,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { * * @author Andreas Gohr <andi@splitbrain.org> */ - function render_TOC($toc){ + function render_TOC($toc=null){ + if(is_null($toc) && is_array($this->toc)) $toc = $this->toc; + if(count($toc) < 3) return ''; global $lang; $out = '<div class="toc">'.DOKU_LF; |