From 6222040c35d547dc99f13bd2bb8222165aa4ce2c Mon Sep 17 00:00:00 2001 From: matthiasgrimm Date: Thu, 13 Oct 2005 19:06:33 +0200 Subject: back button fix The back button corrupted the varable $ID which is used by the indexer. darcs-hash:20051013170633-7ef76-8102f8c8e658d0032783d825a648c13303373c82.gz --- inc/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/template.php b/inc/template.php index 8b9aab635..e04998444 100644 --- a/inc/template.php +++ b/inc/template.php @@ -335,8 +335,8 @@ function tpl_button($type){ print html_btn('index',$ID,'x',array('do' => 'index')); break; case 'back': - if ($ID = tpl_getparent($ID)) { - print html_btn('back',$ID,'b',array('do' => 'show')); + if ($parent = tpl_getparent($ID)) { + print html_btn('back',$parent,'b',array('do' => 'show')); } break; case 'top': -- cgit v1.2.3