summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthiasgrimm <matthiasgrimm@users.sourceforge.net>2005-10-13 19:06:33 +0200
committermatthiasgrimm <matthiasgrimm@users.sourceforge.net>2005-10-13 19:06:33 +0200
commit6222040c35d547dc99f13bd2bb8222165aa4ce2c (patch)
tree1688e10c8b995d211a7e382ff6331b066daabaaa
parent5327e1bbc03b079fffc07a4bafc4bdde4ef1eac0 (diff)
downloadrpg-6222040c35d547dc99f13bd2bb8222165aa4ce2c.tar.gz
rpg-6222040c35d547dc99f13bd2bb8222165aa4ce2c.tar.bz2
back button fix
The back button corrupted the varable $ID which is used by the indexer. darcs-hash:20051013170633-7ef76-8102f8c8e658d0032783d825a648c13303373c82.gz
-rw-r--r--inc/template.php4
1 files changed, 2 insertions, 2 deletions
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':