Not sure why it's getting tripled there, but it should not be appearing at all if there are 0 items to show.
Fixed for the next build. In
vault/functions/postbit.php, find:
Code:
(
// we shouldn't show the normal toc
$vault->parser['toc_balance'] & $vault->misc['tocoptions']['no'] OR
// we don't have enough headlines for toc
$parser->edit_heading < 4
) AND
// we aren't manually placing a toc anyway
!($vault->parser['toc_balance'] & $vault->misc['tocoptions']['toc']) AND
!(
// we aren't forcing the normal toc anyway
$vault->parser['toc_balance'] & $vault->misc['tocoptions']['force'] AND
$parser->edit_heading > 0
)
Replace with:
Code:
(
(
// we shouldn't show the normal toc
$parser->edit_heading < 4 OR
$vault->parser['toc_balance'] & $vault->misc['tocoptions']['no']
) AND
!(
// we don't want to show it anyway
$parser->edit_heading > 0 AND
(
($vault->parser['toc_balance'] & $vault->misc['tocoptions']['force']) OR
($vault->parser['toc_balance'] & $vault->misc['tocoptions']['toc'])
)
)
)