summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-01-19 00:04:42 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-01-19 00:04:42 +0100
commit3d45a99f3a9522953aad5954e35a811dc4986725 (patch)
treec2bee2b16cd1f6adef3ca65a5062da60800b8d00
parente6b3271c70df02c47b794d9adc32ca6bbe39742a (diff)
downloadrpg-3d45a99f3a9522953aad5954e35a811dc4986725.tar.gz
rpg-3d45a99f3a9522953aad5954e35a811dc4986725.tar.bz2
partial fix for TOC displayed on deleted pages FS#1222
darcs-hash:20080118230442-7ad00-badb2e3dd61cb724e780e39488b68b5fb1f3ba7c.gz
-rw-r--r--inc/template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index d84aad8db..1dfa73955 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -152,7 +152,7 @@ function tpl_toc($return=false){
if(is_array($TOC)){
// if a TOC was prepared in global scope, always use it
$toc = $TOC;
- }elseif($ACT == 'show' && !$REV){
+ }elseif($ACT == 'show' && !$REV && $INFO['exists']){
// get TOC from metadata, render if neccessary
$meta = p_get_metadata($ID, false, true);
if(isset($meta['internal']['toc'])){