From b97b485700597b389ded01e5c51102c5d10c3e21 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 13 Oct 2009 12:09:54 +0000 Subject: [PATCH] "need to also empty $name, to fully supress buttons in a box" --- etemplate/inc/class.etemplate.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 489fe4d228..b5860dcc94 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -982,14 +982,14 @@ class etemplate extends boetemplate { $cell['size'] = $this->expand_name($cell['size'],$show_c,$show_row,$content['.c'],$content['.row'],$content); } - if ($cell['disabled'] && $readonlys[$name] !== false || $readonly && in_array($cell['type'],array('button','buttononly','image')) && strpos($cell['size'],',')===false) + if ($cell['disabled'] && $readonlys[$name] !== false || $readonly && in_array($cell['type'],array('button','buttononly','image')) && strpos($cell['size'],',') === false) { if ($this->rows == 1) { return ''; // if only one row omit cell } $cell = $this->empty_cell('label','',array('span' => $cell['span'])); // show nothing (keep the css class!) - $value = ''; + $name = $value = ''; } $extra_label = True;