fixed wrong unit-label

This commit is contained in:
Ralf Becker 2005-08-17 11:04:21 +00:00
parent 9e2b744ce1
commit cb59056b85

View File

@ -397,7 +397,7 @@
elseif (!$readonly || $value) elseif (!$readonly || $value)
{ {
$cell['no_lang'] = 2; $cell['no_lang'] = 2;
$cell['label'] .= ($cell['label'] ? ' ' : '') . '%s '.($input_format == 'h' ? lang('hours') : lang('days')); $cell['label'] .= ($cell['label'] ? ' ' : '') . '%s '.($unit == 'h' ? lang('hours') : lang('days'));
} }
return True; // extra Label is ok return True; // extra Label is ok
} }