fix for bug #41: etemplate generates empty images <img src="">

This commit is contained in:
Ralf Becker 2006-12-29 06:50:49 +00:00
parent 7734e2f55e
commit 4c1b672b72

View File

@ -810,7 +810,7 @@
{ {
$cell['size'] = $this->expand_name($cell['size'],$show_c,$show_row,$content['.c'],$content['.row'],$content); $cell['size'] = $this->expand_name($cell['size'],$show_c,$show_row,$content['.c'],$content['.row'],$content);
} }
if ($cell['disabled'] && $readonlys[$name] !== false || $readonly && $cell['type'] == 'button' && $cell['size'] && strpos($cell['size'],',')===false) if ($cell['disabled'] && $readonlys[$name] !== false || $readonly && $cell['type'] == 'button' && strpos($cell['size'],',')===false)
{ {
if ($this->rows == 1) { if ($this->rows == 1) {
return ''; // if only one row omit cell return ''; // if only one row omit cell