From cb59056b85d9a420b7639e2901eaa1973a122426 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 17 Aug 2005 11:04:21 +0000 Subject: [PATCH] fixed wrong unit-label --- etemplate/inc/class.date_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.date_widget.inc.php b/etemplate/inc/class.date_widget.inc.php index 3d1886fae8..6d7fae43d8 100644 --- a/etemplate/inc/class.date_widget.inc.php +++ b/etemplate/inc/class.date_widget.inc.php @@ -397,7 +397,7 @@ elseif (!$readonly || $value) { $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 }