summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-08-23 20:34:26 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-08-23 20:34:26 +0200
commit1dad36f5f0020323fc1fb83f29d3af2b56dbec25 (patch)
tree1aa8a9efc8ca6bcd65c2e081c0c4a792250e0764
parent6db72d46c4c014dbd379899855d09a7b5810630c (diff)
downloadrpg-1dad36f5f0020323fc1fb83f29d3af2b56dbec25.tar.gz
rpg-1dad36f5f0020323fc1fb83f29d3af2b56dbec25.tar.bz2
don't display indexer webbug for nonexisting pages
darcs-hash:20050823183426-7ad00-0cadf9dfa87fcae1dc6c40b7f56c4f08b9406945.gz
-rw-r--r--inc/template.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php
index be1ffd6d4..8c0e02367 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -876,6 +876,9 @@ function tpl_img($maxwidth=900,$maxheight=700){
*/
function tpl_indexerWebBug(){
global $ID;
+ global $INFO;
+ if(!$INFO['exists']) return;
+
$p = array();
$p['src'] = DOKU_BASE.'lib/exe/indexer.php?id='.urlencode($ID).
'&'.time();