summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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':